diff --git a/idp/.openapi-generator/FILES b/idp/.openapi-generator/FILES index 5042e18..e8b941c 100644 --- a/idp/.openapi-generator/FILES +++ b/idp/.openapi-generator/FILES @@ -5,71 +5,131 @@ api/openapi.yaml api_default.go client.go configuration.go -docs/ClaimsMapping.md -docs/ClaimsMapping1.md -docs/ClaimsMapping2.md -docs/Client.md -docs/Client1.md -docs/Credentials.md -docs/Credentials1.md docs/DefaultApi.md docs/Idp.md -docs/IdpCommonProps.md -docs/IdpOIDC.md docs/IdpPatchBody.md -docs/IdpPatchBodyType.md docs/IdpPostBody.md -docs/IdpPostBodyType.md -docs/IdpSAML.md docs/IdpSummary.md -docs/ModelType.md -docs/OidcProvider.md -docs/OidcProvider1.md +docs/IdpSummaryType.md +docs/LdapProviderGet.md +docs/LdapProviderPatch.md +docs/LdapProviderPatchConnection.md +docs/LdapProviderPatchFilters.md +docs/LdapProviderPatchGroupMapping.md +docs/LdapProviderPatchSearchBases.md +docs/LdapProviderPatchUserMapping.md +docs/LdapProviderPostBody.md +docs/LdapProviderPostBodyConnection.md +docs/LdapProviderPostBodyFilters.md +docs/LdapProviderPostBodyGroupMapping.md +docs/LdapProviderPostBodySearchBases.md +docs/LdapProviderPostBodyType.md +docs/LdapProviderPostBodyUserMapping.md +docs/OpenIDProviderDynamicPostBody.md +docs/OpenIDProviderDynamicPostBodyOidcProvider.md +docs/OpenIDProviderDynamicPostBodyOidcProviderClient.md +docs/OpenIDProviderDynamicPostBodyOidcProviderClientMetadata.md +docs/OpenIDProviderDynamicPostBodyOidcProviderClientRegistration.md +docs/OpenIDProviderDynamicPostBodyOidcProviderClientUrls.md +docs/OpenIDProviderGet.md +docs/OpenIDProviderGetOidcProvider.md +docs/OpenIDProviderGetOidcProviderClient.md +docs/OpenIDProviderGetOidcProviderClientCredentials.md +docs/OpenIDProviderGetOidcProviderUrls.md +docs/OpenIDProviderGetServiceProvider.md +docs/OpenIDProviderGetServiceProviderUrls.md +docs/OpenIDProviderManualPostBody.md +docs/OpenIDProviderManualPostBodyOidcProvider.md +docs/OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md +docs/OpenIDProviderManualPostBodyOidcProviderClient.md +docs/OpenIDProviderManualPostBodyOidcProviderClientCredentials.md +docs/OpenIDProviderManualPostBodyOidcProviderUrls.md +docs/OpenIDProviderManualPostBodyType.md +docs/OpenIDProviderPatch.md +docs/OpenIDProviderPatchOidcProvider.md +docs/OpenIDProviderPatchOidcProviderClient.md +docs/OpenIDProviderPatchOidcProviderClientCredentials.md +docs/OpenIDProviderPatchOidcProviderClientRegistration.md +docs/OpenIDProviderPatchOidcProviderClientUrls.md +docs/OpenIDProviderPatchOidcProviderUrls.md docs/OrganizationsOrgIdIdentityProvidersGet200Response.md docs/OrganizationsOrgIdIdentityProvidersIdpIdPatch400Response.md docs/OrganizationsOrgIdIdentityProvidersIdpIdPatch400ResponseErrorsInner.md -docs/Saml.md -docs/Saml1.md -docs/ServiceProvider.md -docs/ServiceProvider1.md -docs/Urls.md -docs/Urls1.md -docs/Urls2.md -docs/Urls3.md -docs/Urls4.md +docs/SamlProviderGet.md +docs/SamlProviderPatch.md +docs/SamlProviderPatchSaml.md +docs/SamlProviderPatchServiceProvider.md +docs/SamlProviderPatchServiceProviderUrls.md +docs/SamlProviderPatchType.md +docs/SamlProviderPostBody.md +docs/SamlProviderPostBodySaml.md +docs/SamlProviderPostBodySamlClaimsMapping.md +docs/SamlProviderPostBodyServiceProvider.md +docs/SamlProviderPostBodyServiceProviderUrls.md +docs/SamlProviderPostBodyType.md git_push.sh go.mod go.sum model__organizations__org_id__identity_providers__idp_id__patch_400_response.go model__organizations__org_id__identity_providers__idp_id__patch_400_response_errors_inner.go model__organizations__org_id__identity_providers_get_200_response.go -model_claims_mapping.go -model_claims_mapping_1.go -model_claims_mapping_2.go -model_client.go -model_client_1.go -model_credentials.go -model_credentials_1.go model_idp.go -model_idp_common_props.go -model_idp_oidc.go model_idp_patch_body.go -model_idp_patch_body_type.go model_idp_post_body.go -model_idp_post_body_type.go -model_idp_saml.go model_idp_summary.go -model_oidc_provider.go -model_oidc_provider_1.go -model_saml.go -model_saml_1.go -model_service_provider.go -model_service_provider_1.go -model_type.go -model_urls.go -model_urls_1.go -model_urls_2.go -model_urls_3.go -model_urls_4.go +model_idp_summary_type.go +model_ldap_provider_get.go +model_ldap_provider_patch.go +model_ldap_provider_patch_connection.go +model_ldap_provider_patch_filters.go +model_ldap_provider_patch_group_mapping.go +model_ldap_provider_patch_search_bases.go +model_ldap_provider_patch_user_mapping.go +model_ldap_provider_post_body.go +model_ldap_provider_post_body_connection.go +model_ldap_provider_post_body_filters.go +model_ldap_provider_post_body_group_mapping.go +model_ldap_provider_post_body_search_bases.go +model_ldap_provider_post_body_type.go +model_ldap_provider_post_body_user_mapping.go +model_open_id_provider_dynamic_post_body.go +model_open_id_provider_dynamic_post_body_oidc_provider.go +model_open_id_provider_dynamic_post_body_oidc_provider_client.go +model_open_id_provider_dynamic_post_body_oidc_provider_client_metadata.go +model_open_id_provider_dynamic_post_body_oidc_provider_client_registration.go +model_open_id_provider_dynamic_post_body_oidc_provider_client_urls.go +model_open_id_provider_get.go +model_open_id_provider_get_oidc_provider.go +model_open_id_provider_get_oidc_provider_client.go +model_open_id_provider_get_oidc_provider_client_credentials.go +model_open_id_provider_get_oidc_provider_urls.go +model_open_id_provider_get_service_provider.go +model_open_id_provider_get_service_provider_urls.go +model_open_id_provider_manual_post_body.go +model_open_id_provider_manual_post_body_oidc_provider.go +model_open_id_provider_manual_post_body_oidc_provider_claims_mapping.go +model_open_id_provider_manual_post_body_oidc_provider_client.go +model_open_id_provider_manual_post_body_oidc_provider_client_credentials.go +model_open_id_provider_manual_post_body_oidc_provider_urls.go +model_open_id_provider_manual_post_body_type.go +model_open_id_provider_patch.go +model_open_id_provider_patch_oidc_provider.go +model_open_id_provider_patch_oidc_provider_client.go +model_open_id_provider_patch_oidc_provider_client_credentials.go +model_open_id_provider_patch_oidc_provider_client_registration.go +model_open_id_provider_patch_oidc_provider_client_urls.go +model_open_id_provider_patch_oidc_provider_urls.go +model_saml_provider_get.go +model_saml_provider_patch.go +model_saml_provider_patch_saml.go +model_saml_provider_patch_service_provider.go +model_saml_provider_patch_service_provider_urls.go +model_saml_provider_patch_type.go +model_saml_provider_post_body.go +model_saml_provider_post_body_saml.go +model_saml_provider_post_body_saml_claims_mapping.go +model_saml_provider_post_body_service_provider.go +model_saml_provider_post_body_service_provider_urls.go +model_saml_provider_post_body_type.go response.go utils.go diff --git a/idp/README.md b/idp/README.md index 65baf85..0f7f0b8 100644 --- a/idp/README.md +++ b/idp/README.md @@ -86,37 +86,67 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [ClaimsMapping](docs/ClaimsMapping.md) - - [ClaimsMapping1](docs/ClaimsMapping1.md) - - [ClaimsMapping2](docs/ClaimsMapping2.md) - - [Client](docs/Client.md) - - [Client1](docs/Client1.md) - - [Credentials](docs/Credentials.md) - - [Credentials1](docs/Credentials1.md) - [Idp](docs/Idp.md) - - [IdpCommonProps](docs/IdpCommonProps.md) - - [IdpOIDC](docs/IdpOIDC.md) - [IdpPatchBody](docs/IdpPatchBody.md) - - [IdpPatchBodyType](docs/IdpPatchBodyType.md) - [IdpPostBody](docs/IdpPostBody.md) - - [IdpPostBodyType](docs/IdpPostBodyType.md) - - [IdpSAML](docs/IdpSAML.md) - [IdpSummary](docs/IdpSummary.md) - - [ModelType](docs/ModelType.md) - - [OidcProvider](docs/OidcProvider.md) - - [OidcProvider1](docs/OidcProvider1.md) + - [IdpSummaryType](docs/IdpSummaryType.md) + - [LdapProviderGet](docs/LdapProviderGet.md) + - [LdapProviderPatch](docs/LdapProviderPatch.md) + - [LdapProviderPatchConnection](docs/LdapProviderPatchConnection.md) + - [LdapProviderPatchFilters](docs/LdapProviderPatchFilters.md) + - [LdapProviderPatchGroupMapping](docs/LdapProviderPatchGroupMapping.md) + - [LdapProviderPatchSearchBases](docs/LdapProviderPatchSearchBases.md) + - [LdapProviderPatchUserMapping](docs/LdapProviderPatchUserMapping.md) + - [LdapProviderPostBody](docs/LdapProviderPostBody.md) + - [LdapProviderPostBodyConnection](docs/LdapProviderPostBodyConnection.md) + - [LdapProviderPostBodyFilters](docs/LdapProviderPostBodyFilters.md) + - [LdapProviderPostBodyGroupMapping](docs/LdapProviderPostBodyGroupMapping.md) + - [LdapProviderPostBodySearchBases](docs/LdapProviderPostBodySearchBases.md) + - [LdapProviderPostBodyType](docs/LdapProviderPostBodyType.md) + - [LdapProviderPostBodyUserMapping](docs/LdapProviderPostBodyUserMapping.md) + - [OpenIDProviderDynamicPostBody](docs/OpenIDProviderDynamicPostBody.md) + - [OpenIDProviderDynamicPostBodyOidcProvider](docs/OpenIDProviderDynamicPostBodyOidcProvider.md) + - [OpenIDProviderDynamicPostBodyOidcProviderClient](docs/OpenIDProviderDynamicPostBodyOidcProviderClient.md) + - [OpenIDProviderDynamicPostBodyOidcProviderClientMetadata](docs/OpenIDProviderDynamicPostBodyOidcProviderClientMetadata.md) + - [OpenIDProviderDynamicPostBodyOidcProviderClientRegistration](docs/OpenIDProviderDynamicPostBodyOidcProviderClientRegistration.md) + - [OpenIDProviderDynamicPostBodyOidcProviderClientUrls](docs/OpenIDProviderDynamicPostBodyOidcProviderClientUrls.md) + - [OpenIDProviderGet](docs/OpenIDProviderGet.md) + - [OpenIDProviderGetOidcProvider](docs/OpenIDProviderGetOidcProvider.md) + - [OpenIDProviderGetOidcProviderClient](docs/OpenIDProviderGetOidcProviderClient.md) + - [OpenIDProviderGetOidcProviderClientCredentials](docs/OpenIDProviderGetOidcProviderClientCredentials.md) + - [OpenIDProviderGetOidcProviderUrls](docs/OpenIDProviderGetOidcProviderUrls.md) + - [OpenIDProviderGetServiceProvider](docs/OpenIDProviderGetServiceProvider.md) + - [OpenIDProviderGetServiceProviderUrls](docs/OpenIDProviderGetServiceProviderUrls.md) + - [OpenIDProviderManualPostBody](docs/OpenIDProviderManualPostBody.md) + - [OpenIDProviderManualPostBodyOidcProvider](docs/OpenIDProviderManualPostBodyOidcProvider.md) + - [OpenIDProviderManualPostBodyOidcProviderClaimsMapping](docs/OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md) + - [OpenIDProviderManualPostBodyOidcProviderClient](docs/OpenIDProviderManualPostBodyOidcProviderClient.md) + - [OpenIDProviderManualPostBodyOidcProviderClientCredentials](docs/OpenIDProviderManualPostBodyOidcProviderClientCredentials.md) + - [OpenIDProviderManualPostBodyOidcProviderUrls](docs/OpenIDProviderManualPostBodyOidcProviderUrls.md) + - [OpenIDProviderManualPostBodyType](docs/OpenIDProviderManualPostBodyType.md) + - [OpenIDProviderPatch](docs/OpenIDProviderPatch.md) + - [OpenIDProviderPatchOidcProvider](docs/OpenIDProviderPatchOidcProvider.md) + - [OpenIDProviderPatchOidcProviderClient](docs/OpenIDProviderPatchOidcProviderClient.md) + - [OpenIDProviderPatchOidcProviderClientCredentials](docs/OpenIDProviderPatchOidcProviderClientCredentials.md) + - [OpenIDProviderPatchOidcProviderClientRegistration](docs/OpenIDProviderPatchOidcProviderClientRegistration.md) + - [OpenIDProviderPatchOidcProviderClientUrls](docs/OpenIDProviderPatchOidcProviderClientUrls.md) + - [OpenIDProviderPatchOidcProviderUrls](docs/OpenIDProviderPatchOidcProviderUrls.md) - [OrganizationsOrgIdIdentityProvidersGet200Response](docs/OrganizationsOrgIdIdentityProvidersGet200Response.md) - [OrganizationsOrgIdIdentityProvidersIdpIdPatch400Response](docs/OrganizationsOrgIdIdentityProvidersIdpIdPatch400Response.md) - [OrganizationsOrgIdIdentityProvidersIdpIdPatch400ResponseErrorsInner](docs/OrganizationsOrgIdIdentityProvidersIdpIdPatch400ResponseErrorsInner.md) - - [Saml](docs/Saml.md) - - [Saml1](docs/Saml1.md) - - [ServiceProvider](docs/ServiceProvider.md) - - [ServiceProvider1](docs/ServiceProvider1.md) - - [Urls](docs/Urls.md) - - [Urls1](docs/Urls1.md) - - [Urls2](docs/Urls2.md) - - [Urls3](docs/Urls3.md) - - [Urls4](docs/Urls4.md) + - [SamlProviderGet](docs/SamlProviderGet.md) + - [SamlProviderPatch](docs/SamlProviderPatch.md) + - [SamlProviderPatchSaml](docs/SamlProviderPatchSaml.md) + - [SamlProviderPatchServiceProvider](docs/SamlProviderPatchServiceProvider.md) + - [SamlProviderPatchServiceProviderUrls](docs/SamlProviderPatchServiceProviderUrls.md) + - [SamlProviderPatchType](docs/SamlProviderPatchType.md) + - [SamlProviderPostBody](docs/SamlProviderPostBody.md) + - [SamlProviderPostBodySaml](docs/SamlProviderPostBodySaml.md) + - [SamlProviderPostBodySamlClaimsMapping](docs/SamlProviderPostBodySamlClaimsMapping.md) + - [SamlProviderPostBodyServiceProvider](docs/SamlProviderPostBodyServiceProvider.md) + - [SamlProviderPostBodyServiceProviderUrls](docs/SamlProviderPostBodyServiceProviderUrls.md) + - [SamlProviderPostBodyType](docs/SamlProviderPostBodyType.md) ## Documentation For Authorization diff --git a/idp/api/openapi.yaml b/idp/api/openapi.yaml index 53e8fb3..7921e5c 100644 --- a/idp/api/openapi.yaml +++ b/idp/api/openapi.yaml @@ -118,7 +118,7 @@ paths: schema: example: This resource does not exist description: Not Found response - "201": + "200": content: application/json: schema: @@ -212,85 +212,278 @@ components: $ref: '#/components/schemas/_organizations__orgId__identityProviders_get_200_response' description: Success response schemas: - idpSummary: - example: - org_id: org_id - name: name - provider_id: provider_id - type: - name: saml - description: description + idp: + oneOf: + - $ref: '#/components/schemas/samlProviderGet' + - $ref: '#/components/schemas/ldapProviderGet' + - $ref: '#/components/schemas/openIDProviderGet' + title: idp + idpPostBody: + oneOf: + - $ref: '#/components/schemas/samlProviderPostBody' + - $ref: '#/components/schemas/ldapProviderPostBody' + - $ref: '#/components/schemas/openIDProviderManualPostBody' + - $ref: '#/components/schemas/openIDProviderDynamicPostBody' + idpPatchBody: + oneOf: + - $ref: '#/components/schemas/samlProviderPatch' + - $ref: '#/components/schemas/ldapProviderPatch' + - $ref: '#/components/schemas/openIDProviderPatch' + samlProviderPostBody: + additionalProperties: false properties: - provider_id: - title: provider_id - type: string - org_id: - title: org_id + arc_namespace: type: string name: - title: name type: string type: - $ref: '#/components/schemas/type' - title: idpSummary + $ref: '#/components/schemas/samlProviderPostBody_type' + service_provider: + $ref: '#/components/schemas/samlProviderPostBody_service_provider' + saml: + $ref: '#/components/schemas/samlProviderPostBody_saml' + login_disabled: + type: boolean + required: + - name + - saml + - service_provider + - type type: object - idpSAML: + ldapProviderPostBody: + additionalProperties: false properties: - saml: - $ref: '#/components/schemas/saml' - title: idpSAML + name: + type: string + arc_namespace: + type: string + type: + $ref: '#/components/schemas/ldapProviderPostBody_type' + connection: + $ref: '#/components/schemas/ldapProviderPostBody_connection' + search_bases: + $ref: '#/components/schemas/ldapProviderPostBody_search_bases' + dns: + $ref: '#/components/schemas/ldapProviderPostBody_search_bases' + filters: + $ref: '#/components/schemas/ldapProviderPostBody_filters' + user_mapping: + $ref: '#/components/schemas/ldapProviderPostBody_user_mapping' + group_mapping: + $ref: '#/components/schemas/ldapProviderPostBody_group_mapping' + required: + - connection + - dns + - filters + - group_mapping + - name + - search_bases + - type + - user_mapping type: object - idpOIDC: + openIDProviderManualPostBody: + additionalProperties: false properties: + name: + type: string + arc_namespace: + type: string + type: + $ref: '#/components/schemas/openIDProviderManualPostBody_type' + oidc_provider: + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider' allow_untrusted_certificates: - title: allow_untrusted_certificates type: boolean - oidc_provider: - $ref: '#/components/schemas/oidc_provider' - title: idpOIDC + login_disabled: + type: boolean + required: + - name + - oidc_provider + - type type: object - idp: - allOf: - - $ref: '#/components/schemas/idpSummary' - - $ref: '#/components/schemas/idpSAML' - - $ref: '#/components/schemas/idpOIDC' - - $ref: '#/components/schemas/idpCommonProps' - title: idp - idpPostBody: + openIDProviderDynamicPostBody: + additionalProperties: false properties: name: - title: name + type: string + arc_namespace: type: string type: - $ref: '#/components/schemas/idpPostBody_type' + $ref: '#/components/schemas/openIDProviderManualPostBody_type' oidc_provider: - $ref: '#/components/schemas/oidc_provider_1' + $ref: '#/components/schemas/openIDProviderDynamicPostBody_oidc_provider' allow_untrusted_certificates: - title: allow_untrusted_certificates type: boolean - saml: - $ref: '#/components/schemas/saml_1' + login_disabled: + type: boolean + required: + - name + - oidc_provider + - type + type: object + samlProviderPatch: + additionalProperties: false + properties: + name: + type: string + type: + $ref: '#/components/schemas/samlProviderPatch_type' service_provider: - $ref: '#/components/schemas/service_provider_1' - title: idpPostBody + $ref: '#/components/schemas/samlProviderPatch_service_provider' + saml: + $ref: '#/components/schemas/samlProviderPatch_saml' + login_disabled: + type: boolean type: object - idpPatchBody: + ldapProviderPatch: + additionalProperties: false + properties: + name: + type: string + type: + $ref: '#/components/schemas/samlProviderPatch_type' + connection: + $ref: '#/components/schemas/ldapProviderPatch_connection' + search_bases: + $ref: '#/components/schemas/ldapProviderPatch_search_bases' + dns: + $ref: '#/components/schemas/ldapProviderPatch_search_bases' + filters: + $ref: '#/components/schemas/ldapProviderPatch_filters' + user_mapping: + $ref: '#/components/schemas/ldapProviderPatch_user_mapping' + group_mapping: + $ref: '#/components/schemas/ldapProviderPatch_group_mapping' + type: object + openIDProviderPatch: + additionalProperties: false properties: name: - title: name type: string type: - $ref: '#/components/schemas/idpPatchBody_type' + $ref: '#/components/schemas/samlProviderPatch_type' oidc_provider: - $ref: '#/components/schemas/oidc_provider_1' + $ref: '#/components/schemas/openIDProviderPatch_oidc_provider' allow_untrusted_certificates: - title: allow_untrusted_certificates type: boolean + login_disabled: + type: boolean + type: object + samlProviderGet: + additionalProperties: false + properties: + name: + type: string + org_id: + type: string saml: - $ref: '#/components/schemas/saml_1' + $ref: '#/components/schemas/samlProviderPostBody_saml' + service_provider: + $ref: '#/components/schemas/samlProviderPostBody_service_provider' + login_disabled: + type: boolean + arc_namespace: + type: string + provider_id: + type: string + type: + $ref: '#/components/schemas/samlProviderPostBody_type' + required: + - name + - org_id + - provider_id + - saml + - service_provider + - type + type: object + ldapProviderGet: + additionalProperties: false + properties: + user_mapping: + $ref: '#/components/schemas/ldapProviderPostBody_user_mapping' + filters: + $ref: '#/components/schemas/ldapProviderPostBody_filters' + name: + type: string + org_id: + type: string + dns: + $ref: '#/components/schemas/ldapProviderPostBody_search_bases' + group_mapping: + $ref: '#/components/schemas/ldapProviderPostBody_group_mapping' + connection: + $ref: '#/components/schemas/ldapProviderPostBody_connection' + arc_namespace: + type: string + provider_id: + type: string + type: + $ref: '#/components/schemas/ldapProviderPostBody_type' + search_bases: + $ref: '#/components/schemas/ldapProviderPostBody_search_bases' + required: + - connection + - dns + - filters + - group_mapping + - name + - org_id + - provider_id + - search_bases + - type + - user_mapping + type: object + openIDProviderGet: + additionalProperties: false + properties: + oidc_provider: + $ref: '#/components/schemas/openIDProviderGet_oidc_provider' + name: + type: string + org_id: + type: string service_provider: - $ref: '#/components/schemas/service_provider_1' - title: idpPatchBody + $ref: '#/components/schemas/openIDProviderGet_service_provider' + login_disabled: + type: boolean + allow_untrusted_certificates: + type: boolean + type: + $ref: '#/components/schemas/openIDProviderManualPostBody_type' + provider_id: + type: string + required: + - allow_untrusted_certificates + - name + - oidc_provider + - org_id + - provider_id + - service_provider + - type + type: object + idpSummary: + additionalProperties: false + example: + org_id: org_id + name: name + provider_id: provider_id + type: + name: ldap + description: description + properties: + provider_id: + type: string + org_id: + type: string + name: + type: string + type: + $ref: '#/components/schemas/idpSummary_type' + required: + - name + - org_id + - provider_id + - type type: object _organizations__orgId__identityProviders_get_200_response: example: @@ -300,13 +493,13 @@ components: name: name provider_id: provider_id type: - name: saml + name: ldap description: description - org_id: org_id name: name provider_id: provider_id type: - name: saml + name: ldap description: description properties: data: @@ -337,296 +530,539 @@ components: $ref: '#/components/schemas/_organizations__orgId__identityProviders__idpId__patch_400_response_errors_inner' type: array type: object - type: - example: - name: saml - description: description + samlProviderPostBody_type: + additionalProperties: false properties: description: - title: description type: string name: enum: - saml - - openid - title: name type: string - title: type + required: + - name type: object - claims_mapping: + samlProviderPostBody_service_provider_urls: + additionalProperties: false properties: - email_attribute: - title: email_attribute - type: string - group_attribute: - title: group_attribute + sign_on: type: string - lastname_attribute: - title: lastname_attribute + sign_out: type: string + required: + - sign_on + - sign_out + type: object + samlProviderPostBody_service_provider: + additionalProperties: false + properties: + urls: + $ref: '#/components/schemas/samlProviderPostBody_service_provider_urls' + required: + - urls + type: object + samlProviderPostBody_saml_claims_mapping: + additionalProperties: false + properties: username_attribute: - title: username_attribute type: string firstname_attribute: - title: firstname_attribute type: string - title: claims_mapping + lastname_attribute: + type: string + email_attribute: + type: string + group_attribute: + type: string type: object - saml: + samlProviderPostBody_saml: + additionalProperties: false properties: - issuer: - title: issuer - type: string audience: - title: audience + type: string + issuer: type: string public_key: items: type: string - title: public_key + maxItems: 2 + minItems: 1 type: array claims_mapping: - $ref: '#/components/schemas/claims_mapping' + $ref: '#/components/schemas/samlProviderPostBody_saml_claims_mapping' + idp_initiated_sso_enabled: + type: boolean sp_initiated_sso_enabled: - title: sp_initiated_sso_enabled type: boolean - idp_initiated_sso_enabled: - title: idp_initiated_sso_enabled + use_composer_acs_url: type: boolean require_encrypted_saml_assertions: - title: require_encrypted_saml_assertions type: boolean - title: saml + required: + - audience + - issuer + - public_key type: object - urls: + ldapProviderPostBody_type: + additionalProperties: false properties: - token: - title: token - type: string - redirect: - title: redirect - type: string - userinfo: - title: userinfo + description: type: string - authorize: - title: authorize + name: + enum: + - ldap type: string - title: urls + required: + - name type: object - urls_1: + ldapProviderPostBody_connection: + additionalProperties: false properties: - register: - title: register + binddn: type: string - title: urls - type: object - credentials: - properties: - id: - title: id + connectTimeoutSeconds: + type: number + host: type: string - title: credentials - type: object - client: - properties: - urls: - $ref: '#/components/schemas/urls_1' - credentials: - $ref: '#/components/schemas/credentials' - token_endpoint_auth_methods_supported: - items: - type: string - title: token_endpoint_auth_methods_supported - type: array - title: client + operationTimeoutMs: + type: number + password: + type: string + port: + type: number + validatecert: + type: boolean + required: + - binddn + - connectTimeoutSeconds + - host + - operationTimeoutMs + - password + - port type: object - oidc_provider: + ldapProviderPostBody_search_bases: + additionalProperties: false properties: - urls: - $ref: '#/components/schemas/urls' - client: - $ref: '#/components/schemas/client' - issuer: - title: issuer + group: type: string - group_scope: - title: group_scope + user: type: string - title: oidc_provider + required: + - group + - user type: object - urls_2: + ldapProviderPostBody_filters: + additionalProperties: false properties: - sign_on: - title: sign_on + groupsByUsername: type: string - sign_out: - description: only available for SAML - title: sign_out + userByUsername: type: string - title: urls + required: + - groupsByUsername + - userByUsername type: object - example: null - service_provider: + ldapProviderPostBody_user_mapping: + additionalProperties: false properties: - urls: - $ref: '#/components/schemas/urls_2' - title: service_provider + email: + type: string + firstName: + type: string + id: + type: string + lastName: + type: string + username: + type: string + required: + - email + - firstName + - id + - lastName + - username type: object - example: null - idpCommonProps: + ldapProviderPostBody_group_mapping: + additionalProperties: false properties: - service_provider: - $ref: '#/components/schemas/service_provider' - title: idpCommonProps + groupName: + type: string + id: + type: string + required: + - groupName + - id type: object - example: null - idpPostBody_type: + openIDProviderManualPostBody_type: + additionalProperties: false properties: description: - title: description type: string name: enum: - - saml - openid - title: name type: string + required: + - name type: object - credentials_1: + openIDProviderManualPostBody_oidc_provider_client_credentials: + additionalProperties: false properties: id: - title: id type: string secret: - title: secret type: string - title: credentials + required: + - id + - secret type: object - client_1: - description: either contains urls or credentials (mutually exclusive) + openIDProviderManualPostBody_oidc_provider_client: + additionalProperties: false properties: - urls: - $ref: '#/components/schemas/urls_1' credentials: - $ref: '#/components/schemas/credentials_1' - title: client + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider_client_credentials' + required: + - credentials type: object - urls_3: + openIDProviderManualPostBody_oidc_provider_urls: + additionalProperties: false properties: authorize: - title: authorize type: string token: - title: token type: string userinfo: - title: userinfo type: string - title: urls + required: + - authorize + - token + - userinfo type: object - claims_mapping_1: + openIDProviderManualPostBody_oidc_provider_claims_mapping: + additionalProperties: false properties: group_expression: - title: group_expression type: string - title: claims_mapping type: object - oidc_provider_1: + openIDProviderManualPostBody_oidc_provider: + additionalProperties: false properties: client: - $ref: '#/components/schemas/client_1' + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider_client' issuer: - title: issuer type: string urls: - $ref: '#/components/schemas/urls_3' + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider_urls' group_scope: - title: group_scope type: string claims_mapping: - $ref: '#/components/schemas/claims_mapping_1' - title: oidc_provider + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider_claims_mapping' + required: + - client + - urls type: object - claims_mapping_2: + openIDProviderDynamicPostBody_oidc_provider_client_urls: + additionalProperties: false properties: - username_attribute: - description: "Field name in the SAML AttributeStatements that maps to username.\ - \ By default, the NameID attribute in the SAML assertion is used." - title: username_attribute + register: type: string - firstname_attribute: - description: "Field name in the SAML AttributeStatements that maps to First\ - \ Name. By default, the firstname attribute in the SAML assertion is used." - title: firstname_attribute + required: + - register + type: object + openIDProviderDynamicPostBody_oidc_provider_client_registration: + additionalProperties: false + properties: + authorization: type: string - lastname_attribute: - description: "Field name in the SAML AttributeStatements that maps to Last\ - \ Name. By default, the lastname attribute in the SAML assertion is used." - title: lastname_attribute + required: + - authorization + type: object + openIDProviderDynamicPostBody_oidc_provider_client_metadata: + additionalProperties: false + properties: + name: type: string - email_attribute: - description: "Field name in the SAML AttributeStatements that maps to Email.\ - \ By default, the email attribute in the SAML assertion is used." - title: email_attribute + type: object + openIDProviderDynamicPostBody_oidc_provider_client: + additionalProperties: false + properties: + urls: + $ref: '#/components/schemas/openIDProviderDynamicPostBody_oidc_provider_client_urls' + registration: + $ref: '#/components/schemas/openIDProviderDynamicPostBody_oidc_provider_client_registration' + metadata: + $ref: '#/components/schemas/openIDProviderDynamicPostBody_oidc_provider_client_metadata' + required: + - urls + type: object + openIDProviderDynamicPostBody_oidc_provider: + additionalProperties: false + properties: + client: + $ref: '#/components/schemas/openIDProviderDynamicPostBody_oidc_provider_client' + issuer: type: string - group_attribute: - description: Field name in the SAML AttributeStatements that maps to Group. - title: group_attribute + urls: + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider_urls' + group_scope: + type: string + claims_mapping: + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider_claims_mapping' + required: + - client + - urls + type: object + samlProviderPatch_type: + additionalProperties: false + properties: + description: type: string - title: claims_mapping type: object - saml_1: + samlProviderPatch_service_provider_urls: + additionalProperties: false properties: + sign_on: + type: string + sign_out: + type: string + type: object + samlProviderPatch_service_provider: + additionalProperties: false + properties: + urls: + $ref: '#/components/schemas/samlProviderPatch_service_provider_urls' + type: object + samlProviderPatch_saml: + additionalProperties: false + properties: + audience: + type: string issuer: - title: issuer type: string public_key: items: type: string - title: public_key + maxItems: 2 + minItems: 1 type: array - audience: - title: audience - type: string claims_mapping: - $ref: '#/components/schemas/claims_mapping_2' - require_encrypted_saml_assertions: - title: require_encrypted_saml_assertions - type: boolean + $ref: '#/components/schemas/samlProviderPostBody_saml_claims_mapping' idp_initiated_sso_enabled: - title: idp_initiated_sso_enabled type: boolean sp_initiated_sso_enabled: - title: sp_initiated_sso_enabled type: boolean - title: saml + use_composer_acs_url: + type: boolean + require_encrypted_saml_assertions: + type: boolean type: object - urls_4: + ldapProviderPatch_connection: + additionalProperties: false properties: - sign_on: - description: The Anypoint Platform URL where users must sign in. - title: sign_on + binddn: type: string - sign_out: - description: "URL to redirect sign out requests, so users both sign out\ - \ of the Anypoint Platform and have their SAML user's status set to signed\ - \ out." - title: sign_out + connectTimeoutSeconds: + type: number + host: + type: string + operationTimeoutMs: + type: number + password: + type: string + port: + type: number + validatecert: + type: boolean + type: object + ldapProviderPatch_search_bases: + additionalProperties: false + properties: + group: + type: string + user: + type: string + type: object + ldapProviderPatch_filters: + additionalProperties: false + properties: + groupsByUsername: + type: string + userByUsername: + type: string + type: object + ldapProviderPatch_user_mapping: + additionalProperties: false + properties: + email: + type: string + firstName: + type: string + id: + type: string + lastName: + type: string + username: + type: string + type: object + ldapProviderPatch_group_mapping: + additionalProperties: false + properties: + groupName: + type: string + id: + type: string + type: object + openIDProviderPatch_oidc_provider_client_credentials: + additionalProperties: false + properties: + id: + type: string + secret: + type: string + type: object + openIDProviderPatch_oidc_provider_client_urls: + additionalProperties: false + properties: + register: + type: string + type: object + openIDProviderPatch_oidc_provider_client_registration: + additionalProperties: false + properties: + authorization: + type: string + type: object + openIDProviderPatch_oidc_provider_client: + additionalProperties: false + properties: + credentials: + $ref: '#/components/schemas/openIDProviderPatch_oidc_provider_client_credentials' + urls: + $ref: '#/components/schemas/openIDProviderPatch_oidc_provider_client_urls' + registration: + $ref: '#/components/schemas/openIDProviderPatch_oidc_provider_client_registration' + metadata: + $ref: '#/components/schemas/openIDProviderDynamicPostBody_oidc_provider_client_metadata' + type: object + openIDProviderPatch_oidc_provider_urls: + additionalProperties: false + properties: + authorize: + type: string + token: + type: string + userinfo: type: string - title: urls type: object - service_provider_1: + openIDProviderPatch_oidc_provider: + additionalProperties: false properties: + client: + $ref: '#/components/schemas/openIDProviderPatch_oidc_provider_client' + issuer: + type: string urls: - $ref: '#/components/schemas/urls_4' - title: service_provider + $ref: '#/components/schemas/openIDProviderPatch_oidc_provider_urls' + group_scope: + type: string + claims_mapping: + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider_claims_mapping' + type: object + openIDProviderGet_oidc_provider_client_credentials: + additionalProperties: false + properties: + id: + type: string + secret: + type: string + required: + - id type: object - idpPatchBody_type: + openIDProviderGet_oidc_provider_client: + additionalProperties: false + properties: + credentials: + $ref: '#/components/schemas/openIDProviderGet_oidc_provider_client_credentials' + urls: + $ref: '#/components/schemas/openIDProviderDynamicPostBody_oidc_provider_client_urls' + registration: + $ref: '#/components/schemas/openIDProviderPatch_oidc_provider_client_registration' + metadata: + $ref: '#/components/schemas/openIDProviderDynamicPostBody_oidc_provider_client_metadata' + token_endpoint_auth_methods_supported: + items: + type: string + type: array + required: + - credentials + type: object + openIDProviderGet_oidc_provider_urls: + additionalProperties: false + properties: + authorize: + type: string + redirect: + type: string + token: + type: string + userinfo: + type: string + required: + - authorize + - redirect + - token + - userinfo + type: object + openIDProviderGet_oidc_provider: + additionalProperties: false + properties: + client: + $ref: '#/components/schemas/openIDProviderGet_oidc_provider_client' + issuer: + type: string + urls: + $ref: '#/components/schemas/openIDProviderGet_oidc_provider_urls' + group_scope: + type: string + claims_mapping: + $ref: '#/components/schemas/openIDProviderManualPostBody_oidc_provider_claims_mapping' + required: + - client + - issuer + - urls + type: object + openIDProviderGet_service_provider_urls: + additionalProperties: false + properties: + sign_on: + type: string + required: + - sign_on + type: object + openIDProviderGet_service_provider: + additionalProperties: false + properties: + urls: + $ref: '#/components/schemas/openIDProviderGet_service_provider_urls' + required: + - urls + type: object + idpSummary_type: + additionalProperties: false + example: + name: ldap + description: description properties: description: - title: description type: string + name: + enum: + - ldap + - openid + - saml + type: string + required: + - name type: object securitySchemes: bearerAuth: diff --git a/idp/docs/DefaultApi.md b/idp/docs/DefaultApi.md index aeb7a62..d470494 100644 --- a/idp/docs/DefaultApi.md +++ b/idp/docs/DefaultApi.md @@ -249,7 +249,7 @@ import ( func main() { orgId := "orgId_example" // string | The ID of the organization in GUID format idpId := "idpId_example" // string | The ID of the Identity Provider in GUID format - idpPatchBody := *openapiclient.NewIdpPatchBody() // IdpPatchBody | (optional) + idpPatchBody := openapiclient.idpPatchBody{LdapProviderPatch: openapiclient.NewLdapProviderPatch()} // IdpPatchBody | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -323,7 +323,7 @@ import ( func main() { orgId := "orgId_example" // string | The ID of the organization in GUID format - idpPostBody := *openapiclient.NewIdpPostBody() // IdpPostBody | (optional) + idpPostBody := openapiclient.idpPostBody{LdapProviderPostBody: openapiclient.NewLdapProviderPostBody("Name_example", *openapiclient.NewLdapProviderPostBodyType("Name_example"), *openapiclient.NewLdapProviderPostBodyConnection("Binddn_example", float32(123), "Host_example", float32(123), "Password_example", float32(123)), *openapiclient.NewLdapProviderPostBodySearchBases("Group_example", "User_example"), *openapiclient.NewLdapProviderPostBodySearchBases("Group_example", "User_example"), *openapiclient.NewLdapProviderPostBodyFilters("GroupsByUsername_example", "UserByUsername_example"), *openapiclient.NewLdapProviderPostBodyUserMapping("Email_example", "FirstName_example", "Id_example", "LastName_example", "Username_example"), *openapiclient.NewLdapProviderPostBodyGroupMapping("GroupName_example", "Id_example"))} // IdpPostBody | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/idp/docs/Idp.md b/idp/docs/Idp.md index 56d125e..0e7304f 100644 --- a/idp/docs/Idp.md +++ b/idp/docs/Idp.md @@ -4,20 +4,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ProviderId** | Pointer to **string** | | [optional] -**OrgId** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**ModelType**](ModelType.md) | | [optional] -**Saml** | Pointer to [**Saml**](Saml.md) | | [optional] -**AllowUntrustedCertificates** | Pointer to **bool** | | [optional] -**OidcProvider** | Pointer to [**OidcProvider**](OidcProvider.md) | | [optional] -**ServiceProvider** | Pointer to [**ServiceProvider**](ServiceProvider.md) | | [optional] +**Name** | **string** | | +**OrgId** | **string** | | +**Saml** | [**SamlProviderPostBodySaml**](SamlProviderPostBodySaml.md) | | +**ServiceProvider** | [**OpenIDProviderGetServiceProvider**](OpenIDProviderGetServiceProvider.md) | | +**LoginDisabled** | Pointer to **bool** | | [optional] +**ArcNamespace** | Pointer to **string** | | [optional] +**ProviderId** | **string** | | +**Type** | [**OpenIDProviderManualPostBodyType**](OpenIDProviderManualPostBodyType.md) | | +**UserMapping** | [**LdapProviderPostBodyUserMapping**](LdapProviderPostBodyUserMapping.md) | | +**Filters** | [**LdapProviderPostBodyFilters**](LdapProviderPostBodyFilters.md) | | +**Dns** | [**LdapProviderPostBodySearchBases**](LdapProviderPostBodySearchBases.md) | | +**GroupMapping** | [**LdapProviderPostBodyGroupMapping**](LdapProviderPostBodyGroupMapping.md) | | +**Connection** | [**LdapProviderPostBodyConnection**](LdapProviderPostBodyConnection.md) | | +**SearchBases** | [**LdapProviderPostBodySearchBases**](LdapProviderPostBodySearchBases.md) | | +**OidcProvider** | [**OpenIDProviderGetOidcProvider**](OpenIDProviderGetOidcProvider.md) | | +**AllowUntrustedCertificates** | **bool** | | ## Methods ### NewIdp -`func NewIdp() *Idp` +`func NewIdp(name string, orgId string, saml SamlProviderPostBodySaml, serviceProvider OpenIDProviderGetServiceProvider, providerId string, type_ OpenIDProviderManualPostBodyType, userMapping LdapProviderPostBodyUserMapping, filters LdapProviderPostBodyFilters, dns LdapProviderPostBodySearchBases, groupMapping LdapProviderPostBodyGroupMapping, connection LdapProviderPostBodyConnection, searchBases LdapProviderPostBodySearchBases, oidcProvider OpenIDProviderGetOidcProvider, allowUntrustedCertificates bool, ) *Idp` NewIdp instantiates a new Idp object This constructor will assign default values to properties that have it defined, @@ -32,30 +40,25 @@ NewIdpWithDefaults instantiates a new Idp object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetProviderId +### GetName -`func (o *Idp) GetProviderId() string` +`func (o *Idp) GetName() string` -GetProviderId returns the ProviderId field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetProviderIdOk +### GetNameOk -`func (o *Idp) GetProviderIdOk() (*string, bool)` +`func (o *Idp) GetNameOk() (*string, bool)` -GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProviderId - -`func (o *Idp) SetProviderId(v string)` - -SetProviderId sets ProviderId field to given value. +### SetName -### HasProviderId +`func (o *Idp) SetName(v string)` -`func (o *Idp) HasProviderId() bool` +SetName sets Name field to given value. -HasProviderId returns a boolean if a field has been set. ### GetOrgId @@ -76,161 +79,296 @@ and a boolean to check if the value has been set. SetOrgId sets OrgId field to given value. -### HasOrgId -`func (o *Idp) HasOrgId() bool` +### GetSaml + +`func (o *Idp) GetSaml() SamlProviderPostBodySaml` -HasOrgId returns a boolean if a field has been set. +GetSaml returns the Saml field if non-nil, zero value otherwise. -### GetName +### GetSamlOk -`func (o *Idp) GetName() string` +`func (o *Idp) GetSamlOk() (*SamlProviderPostBodySaml, bool)` -GetName returns the Name field if non-nil, zero value otherwise. +GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -### GetNameOk +### SetSaml -`func (o *Idp) GetNameOk() (*string, bool)` +`func (o *Idp) SetSaml(v SamlProviderPostBodySaml)` -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +SetSaml sets Saml field to given value. + + +### GetServiceProvider + +`func (o *Idp) GetServiceProvider() OpenIDProviderGetServiceProvider` + +GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. + +### GetServiceProviderOk + +`func (o *Idp) GetServiceProviderOk() (*OpenIDProviderGetServiceProvider, bool)` + +GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetName +### SetServiceProvider -`func (o *Idp) SetName(v string)` +`func (o *Idp) SetServiceProvider(v OpenIDProviderGetServiceProvider)` -SetName sets Name field to given value. +SetServiceProvider sets ServiceProvider field to given value. + + +### GetLoginDisabled + +`func (o *Idp) GetLoginDisabled() bool` + +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. + +### GetLoginDisabledOk + +`func (o *Idp) GetLoginDisabledOk() (*bool, bool)` + +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginDisabled + +`func (o *Idp) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *Idp) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + +### GetArcNamespace + +`func (o *Idp) GetArcNamespace() string` + +GetArcNamespace returns the ArcNamespace field if non-nil, zero value otherwise. + +### GetArcNamespaceOk + +`func (o *Idp) GetArcNamespaceOk() (*string, bool)` + +GetArcNamespaceOk returns a tuple with the ArcNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArcNamespace + +`func (o *Idp) SetArcNamespace(v string)` + +SetArcNamespace sets ArcNamespace field to given value. + +### HasArcNamespace + +`func (o *Idp) HasArcNamespace() bool` + +HasArcNamespace returns a boolean if a field has been set. + +### GetProviderId + +`func (o *Idp) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. -### HasName +### GetProviderIdOk + +`func (o *Idp) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *Idp) HasName() bool` +### SetProviderId + +`func (o *Idp) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. -HasName returns a boolean if a field has been set. ### GetType -`func (o *Idp) GetType() ModelType` +`func (o *Idp) GetType() OpenIDProviderManualPostBodyType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *Idp) GetTypeOk() (*ModelType, bool)` +`func (o *Idp) GetTypeOk() (*OpenIDProviderManualPostBodyType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *Idp) SetType(v ModelType)` +`func (o *Idp) SetType(v OpenIDProviderManualPostBodyType)` SetType sets Type field to given value. -### HasType -`func (o *Idp) HasType() bool` +### GetUserMapping -HasType returns a boolean if a field has been set. +`func (o *Idp) GetUserMapping() LdapProviderPostBodyUserMapping` -### GetSaml +GetUserMapping returns the UserMapping field if non-nil, zero value otherwise. -`func (o *Idp) GetSaml() Saml` +### GetUserMappingOk -GetSaml returns the Saml field if non-nil, zero value otherwise. +`func (o *Idp) GetUserMappingOk() (*LdapProviderPostBodyUserMapping, bool)` -### GetSamlOk +GetUserMappingOk returns a tuple with the UserMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *Idp) GetSamlOk() (*Saml, bool)` +### SetUserMapping -GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise +`func (o *Idp) SetUserMapping(v LdapProviderPostBodyUserMapping)` + +SetUserMapping sets UserMapping field to given value. + + +### GetFilters + +`func (o *Idp) GetFilters() LdapProviderPostBodyFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *Idp) GetFiltersOk() (*LdapProviderPostBodyFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSaml +### SetFilters -`func (o *Idp) SetSaml(v Saml)` +`func (o *Idp) SetFilters(v LdapProviderPostBodyFilters)` -SetSaml sets Saml field to given value. +SetFilters sets Filters field to given value. -### HasSaml -`func (o *Idp) HasSaml() bool` +### GetDns -HasSaml returns a boolean if a field has been set. +`func (o *Idp) GetDns() LdapProviderPostBodySearchBases` -### GetAllowUntrustedCertificates +GetDns returns the Dns field if non-nil, zero value otherwise. -`func (o *Idp) GetAllowUntrustedCertificates() bool` +### GetDnsOk -GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. +`func (o *Idp) GetDnsOk() (*LdapProviderPostBodySearchBases, bool)` -### GetAllowUntrustedCertificatesOk +GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *Idp) GetAllowUntrustedCertificatesOk() (*bool, bool)` +### SetDns -GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +`func (o *Idp) SetDns(v LdapProviderPostBodySearchBases)` + +SetDns sets Dns field to given value. + + +### GetGroupMapping + +`func (o *Idp) GetGroupMapping() LdapProviderPostBodyGroupMapping` + +GetGroupMapping returns the GroupMapping field if non-nil, zero value otherwise. + +### GetGroupMappingOk + +`func (o *Idp) GetGroupMappingOk() (*LdapProviderPostBodyGroupMapping, bool)` + +GetGroupMappingOk returns a tuple with the GroupMapping field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAllowUntrustedCertificates +### SetGroupMapping -`func (o *Idp) SetAllowUntrustedCertificates(v bool)` +`func (o *Idp) SetGroupMapping(v LdapProviderPostBodyGroupMapping)` -SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. +SetGroupMapping sets GroupMapping field to given value. + + +### GetConnection + +`func (o *Idp) GetConnection() LdapProviderPostBodyConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *Idp) GetConnectionOk() (*LdapProviderPostBodyConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *Idp) SetConnection(v LdapProviderPostBodyConnection)` + +SetConnection sets Connection field to given value. + + +### GetSearchBases + +`func (o *Idp) GetSearchBases() LdapProviderPostBodySearchBases` + +GetSearchBases returns the SearchBases field if non-nil, zero value otherwise. + +### GetSearchBasesOk + +`func (o *Idp) GetSearchBasesOk() (*LdapProviderPostBodySearchBases, bool)` + +GetSearchBasesOk returns a tuple with the SearchBases field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -### HasAllowUntrustedCertificates +### SetSearchBases -`func (o *Idp) HasAllowUntrustedCertificates() bool` +`func (o *Idp) SetSearchBases(v LdapProviderPostBodySearchBases)` + +SetSearchBases sets SearchBases field to given value. -HasAllowUntrustedCertificates returns a boolean if a field has been set. ### GetOidcProvider -`func (o *Idp) GetOidcProvider() OidcProvider` +`func (o *Idp) GetOidcProvider() OpenIDProviderGetOidcProvider` GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. ### GetOidcProviderOk -`func (o *Idp) GetOidcProviderOk() (*OidcProvider, bool)` +`func (o *Idp) GetOidcProviderOk() (*OpenIDProviderGetOidcProvider, bool)` GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOidcProvider -`func (o *Idp) SetOidcProvider(v OidcProvider)` +`func (o *Idp) SetOidcProvider(v OpenIDProviderGetOidcProvider)` SetOidcProvider sets OidcProvider field to given value. -### HasOidcProvider - -`func (o *Idp) HasOidcProvider() bool` - -HasOidcProvider returns a boolean if a field has been set. -### GetServiceProvider +### GetAllowUntrustedCertificates -`func (o *Idp) GetServiceProvider() ServiceProvider` +`func (o *Idp) GetAllowUntrustedCertificates() bool` -GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. +GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. -### GetServiceProviderOk +### GetAllowUntrustedCertificatesOk -`func (o *Idp) GetServiceProviderOk() (*ServiceProvider, bool)` +`func (o *Idp) GetAllowUntrustedCertificatesOk() (*bool, bool)` -GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise +GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetServiceProvider - -`func (o *Idp) SetServiceProvider(v ServiceProvider)` - -SetServiceProvider sets ServiceProvider field to given value. +### SetAllowUntrustedCertificates -### HasServiceProvider +`func (o *Idp) SetAllowUntrustedCertificates(v bool)` -`func (o *Idp) HasServiceProvider() bool` +SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. -HasServiceProvider returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/idp/docs/IdpPatchBody.md b/idp/docs/IdpPatchBody.md index cf5cfa8..583bbf9 100644 --- a/idp/docs/IdpPatchBody.md +++ b/idp/docs/IdpPatchBody.md @@ -5,11 +5,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**IdpPatchBodyType**](IdpPatchBodyType.md) | | [optional] -**OidcProvider** | Pointer to [**OidcProvider1**](OidcProvider1.md) | | [optional] +**Type** | Pointer to [**SamlProviderPatchType**](SamlProviderPatchType.md) | | [optional] +**ServiceProvider** | Pointer to [**SamlProviderPatchServiceProvider**](SamlProviderPatchServiceProvider.md) | | [optional] +**Saml** | Pointer to [**SamlProviderPatchSaml**](SamlProviderPatchSaml.md) | | [optional] +**LoginDisabled** | Pointer to **bool** | | [optional] +**Connection** | Pointer to [**LdapProviderPatchConnection**](LdapProviderPatchConnection.md) | | [optional] +**SearchBases** | Pointer to [**LdapProviderPatchSearchBases**](LdapProviderPatchSearchBases.md) | | [optional] +**Dns** | Pointer to [**LdapProviderPatchSearchBases**](LdapProviderPatchSearchBases.md) | | [optional] +**Filters** | Pointer to [**LdapProviderPatchFilters**](LdapProviderPatchFilters.md) | | [optional] +**UserMapping** | Pointer to [**LdapProviderPatchUserMapping**](LdapProviderPatchUserMapping.md) | | [optional] +**GroupMapping** | Pointer to [**LdapProviderPatchGroupMapping**](LdapProviderPatchGroupMapping.md) | | [optional] +**OidcProvider** | Pointer to [**OpenIDProviderPatchOidcProvider**](OpenIDProviderPatchOidcProvider.md) | | [optional] **AllowUntrustedCertificates** | Pointer to **bool** | | [optional] -**Saml** | Pointer to [**Saml1**](Saml1.md) | | [optional] -**ServiceProvider** | Pointer to [**ServiceProvider1**](ServiceProvider1.md) | | [optional] ## Methods @@ -57,20 +64,20 @@ HasName returns a boolean if a field has been set. ### GetType -`func (o *IdpPatchBody) GetType() IdpPatchBodyType` +`func (o *IdpPatchBody) GetType() SamlProviderPatchType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *IdpPatchBody) GetTypeOk() (*IdpPatchBodyType, bool)` +`func (o *IdpPatchBody) GetTypeOk() (*SamlProviderPatchType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *IdpPatchBody) SetType(v IdpPatchBodyType)` +`func (o *IdpPatchBody) SetType(v SamlProviderPatchType)` SetType sets Type field to given value. @@ -80,105 +87,280 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. -### GetOidcProvider +### GetServiceProvider -`func (o *IdpPatchBody) GetOidcProvider() OidcProvider1` +`func (o *IdpPatchBody) GetServiceProvider() SamlProviderPatchServiceProvider` -GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. +GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. -### GetOidcProviderOk +### GetServiceProviderOk -`func (o *IdpPatchBody) GetOidcProviderOk() (*OidcProvider1, bool)` +`func (o *IdpPatchBody) GetServiceProviderOk() (*SamlProviderPatchServiceProvider, bool)` -GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise +GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetOidcProvider +### SetServiceProvider -`func (o *IdpPatchBody) SetOidcProvider(v OidcProvider1)` +`func (o *IdpPatchBody) SetServiceProvider(v SamlProviderPatchServiceProvider)` -SetOidcProvider sets OidcProvider field to given value. +SetServiceProvider sets ServiceProvider field to given value. -### HasOidcProvider +### HasServiceProvider -`func (o *IdpPatchBody) HasOidcProvider() bool` +`func (o *IdpPatchBody) HasServiceProvider() bool` -HasOidcProvider returns a boolean if a field has been set. +HasServiceProvider returns a boolean if a field has been set. -### GetAllowUntrustedCertificates +### GetSaml -`func (o *IdpPatchBody) GetAllowUntrustedCertificates() bool` +`func (o *IdpPatchBody) GetSaml() SamlProviderPatchSaml` -GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. +GetSaml returns the Saml field if non-nil, zero value otherwise. -### GetAllowUntrustedCertificatesOk +### GetSamlOk -`func (o *IdpPatchBody) GetAllowUntrustedCertificatesOk() (*bool, bool)` +`func (o *IdpPatchBody) GetSamlOk() (*SamlProviderPatchSaml, bool)` -GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAllowUntrustedCertificates +### SetSaml -`func (o *IdpPatchBody) SetAllowUntrustedCertificates(v bool)` +`func (o *IdpPatchBody) SetSaml(v SamlProviderPatchSaml)` -SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. +SetSaml sets Saml field to given value. -### HasAllowUntrustedCertificates +### HasSaml -`func (o *IdpPatchBody) HasAllowUntrustedCertificates() bool` +`func (o *IdpPatchBody) HasSaml() bool` -HasAllowUntrustedCertificates returns a boolean if a field has been set. +HasSaml returns a boolean if a field has been set. -### GetSaml +### GetLoginDisabled -`func (o *IdpPatchBody) GetSaml() Saml1` +`func (o *IdpPatchBody) GetLoginDisabled() bool` -GetSaml returns the Saml field if non-nil, zero value otherwise. +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. -### GetSamlOk +### GetLoginDisabledOk -`func (o *IdpPatchBody) GetSamlOk() (*Saml1, bool)` +`func (o *IdpPatchBody) GetLoginDisabledOk() (*bool, bool)` -GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSaml +### SetLoginDisabled -`func (o *IdpPatchBody) SetSaml(v Saml1)` +`func (o *IdpPatchBody) SetLoginDisabled(v bool)` -SetSaml sets Saml field to given value. +SetLoginDisabled sets LoginDisabled field to given value. -### HasSaml +### HasLoginDisabled -`func (o *IdpPatchBody) HasSaml() bool` +`func (o *IdpPatchBody) HasLoginDisabled() bool` -HasSaml returns a boolean if a field has been set. +HasLoginDisabled returns a boolean if a field has been set. -### GetServiceProvider +### GetConnection -`func (o *IdpPatchBody) GetServiceProvider() ServiceProvider1` +`func (o *IdpPatchBody) GetConnection() LdapProviderPatchConnection` -GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. +GetConnection returns the Connection field if non-nil, zero value otherwise. -### GetServiceProviderOk +### GetConnectionOk -`func (o *IdpPatchBody) GetServiceProviderOk() (*ServiceProvider1, bool)` +`func (o *IdpPatchBody) GetConnectionOk() (*LdapProviderPatchConnection, bool)` -GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetServiceProvider +### SetConnection -`func (o *IdpPatchBody) SetServiceProvider(v ServiceProvider1)` +`func (o *IdpPatchBody) SetConnection(v LdapProviderPatchConnection)` -SetServiceProvider sets ServiceProvider field to given value. +SetConnection sets Connection field to given value. -### HasServiceProvider +### HasConnection -`func (o *IdpPatchBody) HasServiceProvider() bool` +`func (o *IdpPatchBody) HasConnection() bool` -HasServiceProvider returns a boolean if a field has been set. +HasConnection returns a boolean if a field has been set. + +### GetSearchBases + +`func (o *IdpPatchBody) GetSearchBases() LdapProviderPatchSearchBases` + +GetSearchBases returns the SearchBases field if non-nil, zero value otherwise. + +### GetSearchBasesOk + +`func (o *IdpPatchBody) GetSearchBasesOk() (*LdapProviderPatchSearchBases, bool)` + +GetSearchBasesOk returns a tuple with the SearchBases field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchBases + +`func (o *IdpPatchBody) SetSearchBases(v LdapProviderPatchSearchBases)` + +SetSearchBases sets SearchBases field to given value. + +### HasSearchBases + +`func (o *IdpPatchBody) HasSearchBases() bool` + +HasSearchBases returns a boolean if a field has been set. + +### GetDns + +`func (o *IdpPatchBody) GetDns() LdapProviderPatchSearchBases` + +GetDns returns the Dns field if non-nil, zero value otherwise. + +### GetDnsOk + +`func (o *IdpPatchBody) GetDnsOk() (*LdapProviderPatchSearchBases, bool)` + +GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDns + +`func (o *IdpPatchBody) SetDns(v LdapProviderPatchSearchBases)` + +SetDns sets Dns field to given value. + +### HasDns + +`func (o *IdpPatchBody) HasDns() bool` + +HasDns returns a boolean if a field has been set. + +### GetFilters + +`func (o *IdpPatchBody) GetFilters() LdapProviderPatchFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *IdpPatchBody) GetFiltersOk() (*LdapProviderPatchFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *IdpPatchBody) SetFilters(v LdapProviderPatchFilters)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *IdpPatchBody) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetUserMapping + +`func (o *IdpPatchBody) GetUserMapping() LdapProviderPatchUserMapping` + +GetUserMapping returns the UserMapping field if non-nil, zero value otherwise. + +### GetUserMappingOk + +`func (o *IdpPatchBody) GetUserMappingOk() (*LdapProviderPatchUserMapping, bool)` + +GetUserMappingOk returns a tuple with the UserMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserMapping + +`func (o *IdpPatchBody) SetUserMapping(v LdapProviderPatchUserMapping)` + +SetUserMapping sets UserMapping field to given value. + +### HasUserMapping + +`func (o *IdpPatchBody) HasUserMapping() bool` + +HasUserMapping returns a boolean if a field has been set. + +### GetGroupMapping + +`func (o *IdpPatchBody) GetGroupMapping() LdapProviderPatchGroupMapping` + +GetGroupMapping returns the GroupMapping field if non-nil, zero value otherwise. + +### GetGroupMappingOk + +`func (o *IdpPatchBody) GetGroupMappingOk() (*LdapProviderPatchGroupMapping, bool)` + +GetGroupMappingOk returns a tuple with the GroupMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupMapping + +`func (o *IdpPatchBody) SetGroupMapping(v LdapProviderPatchGroupMapping)` + +SetGroupMapping sets GroupMapping field to given value. + +### HasGroupMapping + +`func (o *IdpPatchBody) HasGroupMapping() bool` + +HasGroupMapping returns a boolean if a field has been set. + +### GetOidcProvider + +`func (o *IdpPatchBody) GetOidcProvider() OpenIDProviderPatchOidcProvider` + +GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. + +### GetOidcProviderOk + +`func (o *IdpPatchBody) GetOidcProviderOk() (*OpenIDProviderPatchOidcProvider, bool)` + +GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcProvider + +`func (o *IdpPatchBody) SetOidcProvider(v OpenIDProviderPatchOidcProvider)` + +SetOidcProvider sets OidcProvider field to given value. + +### HasOidcProvider + +`func (o *IdpPatchBody) HasOidcProvider() bool` + +HasOidcProvider returns a boolean if a field has been set. + +### GetAllowUntrustedCertificates + +`func (o *IdpPatchBody) GetAllowUntrustedCertificates() bool` + +GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. + +### GetAllowUntrustedCertificatesOk + +`func (o *IdpPatchBody) GetAllowUntrustedCertificatesOk() (*bool, bool)` + +GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUntrustedCertificates + +`func (o *IdpPatchBody) SetAllowUntrustedCertificates(v bool)` + +SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. + +### HasAllowUntrustedCertificates + +`func (o *IdpPatchBody) HasAllowUntrustedCertificates() bool` + +HasAllowUntrustedCertificates returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/idp/docs/IdpPostBody.md b/idp/docs/IdpPostBody.md index 38e0f5e..3d9710e 100644 --- a/idp/docs/IdpPostBody.md +++ b/idp/docs/IdpPostBody.md @@ -4,18 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**IdpPostBodyType**](IdpPostBodyType.md) | | [optional] -**OidcProvider** | Pointer to [**OidcProvider1**](OidcProvider1.md) | | [optional] +**ArcNamespace** | Pointer to **string** | | [optional] +**Name** | **string** | | +**Type** | [**OpenIDProviderManualPostBodyType**](OpenIDProviderManualPostBodyType.md) | | +**ServiceProvider** | [**SamlProviderPostBodyServiceProvider**](SamlProviderPostBodyServiceProvider.md) | | +**Saml** | [**SamlProviderPostBodySaml**](SamlProviderPostBodySaml.md) | | +**LoginDisabled** | Pointer to **bool** | | [optional] +**Connection** | [**LdapProviderPostBodyConnection**](LdapProviderPostBodyConnection.md) | | +**SearchBases** | [**LdapProviderPostBodySearchBases**](LdapProviderPostBodySearchBases.md) | | +**Dns** | [**LdapProviderPostBodySearchBases**](LdapProviderPostBodySearchBases.md) | | +**Filters** | [**LdapProviderPostBodyFilters**](LdapProviderPostBodyFilters.md) | | +**UserMapping** | [**LdapProviderPostBodyUserMapping**](LdapProviderPostBodyUserMapping.md) | | +**GroupMapping** | [**LdapProviderPostBodyGroupMapping**](LdapProviderPostBodyGroupMapping.md) | | +**OidcProvider** | [**OpenIDProviderDynamicPostBodyOidcProvider**](OpenIDProviderDynamicPostBodyOidcProvider.md) | | **AllowUntrustedCertificates** | Pointer to **bool** | | [optional] -**Saml** | Pointer to [**Saml1**](Saml1.md) | | [optional] -**ServiceProvider** | Pointer to [**ServiceProvider1**](ServiceProvider1.md) | | [optional] ## Methods ### NewIdpPostBody -`func NewIdpPostBody() *IdpPostBody` +`func NewIdpPostBody(name string, type_ OpenIDProviderManualPostBodyType, serviceProvider SamlProviderPostBodyServiceProvider, saml SamlProviderPostBodySaml, connection LdapProviderPostBodyConnection, searchBases LdapProviderPostBodySearchBases, dns LdapProviderPostBodySearchBases, filters LdapProviderPostBodyFilters, userMapping LdapProviderPostBodyUserMapping, groupMapping LdapProviderPostBodyGroupMapping, oidcProvider OpenIDProviderDynamicPostBodyOidcProvider, ) *IdpPostBody` NewIdpPostBody instantiates a new IdpPostBody object This constructor will assign default values to properties that have it defined, @@ -30,6 +38,31 @@ NewIdpPostBodyWithDefaults instantiates a new IdpPostBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetArcNamespace + +`func (o *IdpPostBody) GetArcNamespace() string` + +GetArcNamespace returns the ArcNamespace field if non-nil, zero value otherwise. + +### GetArcNamespaceOk + +`func (o *IdpPostBody) GetArcNamespaceOk() (*string, bool)` + +GetArcNamespaceOk returns a tuple with the ArcNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArcNamespace + +`func (o *IdpPostBody) SetArcNamespace(v string)` + +SetArcNamespace sets ArcNamespace field to given value. + +### HasArcNamespace + +`func (o *IdpPostBody) HasArcNamespace() bool` + +HasArcNamespace returns a boolean if a field has been set. + ### GetName `func (o *IdpPostBody) GetName() string` @@ -49,136 +82,256 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### HasName - -`func (o *IdpPostBody) HasName() bool` - -HasName returns a boolean if a field has been set. ### GetType -`func (o *IdpPostBody) GetType() IdpPostBodyType` +`func (o *IdpPostBody) GetType() OpenIDProviderManualPostBodyType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *IdpPostBody) GetTypeOk() (*IdpPostBodyType, bool)` +`func (o *IdpPostBody) GetTypeOk() (*OpenIDProviderManualPostBodyType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *IdpPostBody) SetType(v IdpPostBodyType)` +`func (o *IdpPostBody) SetType(v OpenIDProviderManualPostBodyType)` SetType sets Type field to given value. -### HasType -`func (o *IdpPostBody) HasType() bool` +### GetServiceProvider -HasType returns a boolean if a field has been set. +`func (o *IdpPostBody) GetServiceProvider() SamlProviderPostBodyServiceProvider` -### GetOidcProvider +GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. -`func (o *IdpPostBody) GetOidcProvider() OidcProvider1` +### GetServiceProviderOk -GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. +`func (o *IdpPostBody) GetServiceProviderOk() (*SamlProviderPostBodyServiceProvider, bool)` -### GetOidcProviderOk +GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *IdpPostBody) GetOidcProviderOk() (*OidcProvider1, bool)` +### SetServiceProvider -GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise +`func (o *IdpPostBody) SetServiceProvider(v SamlProviderPostBodyServiceProvider)` + +SetServiceProvider sets ServiceProvider field to given value. + + +### GetSaml + +`func (o *IdpPostBody) GetSaml() SamlProviderPostBodySaml` + +GetSaml returns the Saml field if non-nil, zero value otherwise. + +### GetSamlOk + +`func (o *IdpPostBody) GetSamlOk() (*SamlProviderPostBodySaml, bool)` + +GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetOidcProvider +### SetSaml -`func (o *IdpPostBody) SetOidcProvider(v OidcProvider1)` +`func (o *IdpPostBody) SetSaml(v SamlProviderPostBodySaml)` -SetOidcProvider sets OidcProvider field to given value. +SetSaml sets Saml field to given value. -### HasOidcProvider -`func (o *IdpPostBody) HasOidcProvider() bool` +### GetLoginDisabled -HasOidcProvider returns a boolean if a field has been set. +`func (o *IdpPostBody) GetLoginDisabled() bool` -### GetAllowUntrustedCertificates +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. -`func (o *IdpPostBody) GetAllowUntrustedCertificates() bool` +### GetLoginDisabledOk -GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. +`func (o *IdpPostBody) GetLoginDisabledOk() (*bool, bool)` -### GetAllowUntrustedCertificatesOk +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *IdpPostBody) GetAllowUntrustedCertificatesOk() (*bool, bool)` +### SetLoginDisabled -GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +`func (o *IdpPostBody) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *IdpPostBody) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + +### GetConnection + +`func (o *IdpPostBody) GetConnection() LdapProviderPostBodyConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *IdpPostBody) GetConnectionOk() (*LdapProviderPostBodyConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAllowUntrustedCertificates +### SetConnection -`func (o *IdpPostBody) SetAllowUntrustedCertificates(v bool)` +`func (o *IdpPostBody) SetConnection(v LdapProviderPostBodyConnection)` -SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. +SetConnection sets Connection field to given value. -### HasAllowUntrustedCertificates -`func (o *IdpPostBody) HasAllowUntrustedCertificates() bool` +### GetSearchBases -HasAllowUntrustedCertificates returns a boolean if a field has been set. +`func (o *IdpPostBody) GetSearchBases() LdapProviderPostBodySearchBases` -### GetSaml +GetSearchBases returns the SearchBases field if non-nil, zero value otherwise. -`func (o *IdpPostBody) GetSaml() Saml1` +### GetSearchBasesOk -GetSaml returns the Saml field if non-nil, zero value otherwise. +`func (o *IdpPostBody) GetSearchBasesOk() (*LdapProviderPostBodySearchBases, bool)` -### GetSamlOk +GetSearchBasesOk returns a tuple with the SearchBases field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *IdpPostBody) GetSamlOk() (*Saml1, bool)` +### SetSearchBases -GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise +`func (o *IdpPostBody) SetSearchBases(v LdapProviderPostBodySearchBases)` + +SetSearchBases sets SearchBases field to given value. + + +### GetDns + +`func (o *IdpPostBody) GetDns() LdapProviderPostBodySearchBases` + +GetDns returns the Dns field if non-nil, zero value otherwise. + +### GetDnsOk + +`func (o *IdpPostBody) GetDnsOk() (*LdapProviderPostBodySearchBases, bool)` + +GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSaml +### SetDns -`func (o *IdpPostBody) SetSaml(v Saml1)` +`func (o *IdpPostBody) SetDns(v LdapProviderPostBodySearchBases)` -SetSaml sets Saml field to given value. +SetDns sets Dns field to given value. -### HasSaml -`func (o *IdpPostBody) HasSaml() bool` +### GetFilters -HasSaml returns a boolean if a field has been set. +`func (o *IdpPostBody) GetFilters() LdapProviderPostBodyFilters` -### GetServiceProvider +GetFilters returns the Filters field if non-nil, zero value otherwise. -`func (o *IdpPostBody) GetServiceProvider() ServiceProvider1` +### GetFiltersOk -GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. +`func (o *IdpPostBody) GetFiltersOk() (*LdapProviderPostBodyFilters, bool)` -### GetServiceProviderOk +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *IdpPostBody) GetServiceProviderOk() (*ServiceProvider1, bool)` +### SetFilters -GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise +`func (o *IdpPostBody) SetFilters(v LdapProviderPostBodyFilters)` + +SetFilters sets Filters field to given value. + + +### GetUserMapping + +`func (o *IdpPostBody) GetUserMapping() LdapProviderPostBodyUserMapping` + +GetUserMapping returns the UserMapping field if non-nil, zero value otherwise. + +### GetUserMappingOk + +`func (o *IdpPostBody) GetUserMappingOk() (*LdapProviderPostBodyUserMapping, bool)` + +GetUserMappingOk returns a tuple with the UserMapping field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetServiceProvider +### SetUserMapping -`func (o *IdpPostBody) SetServiceProvider(v ServiceProvider1)` +`func (o *IdpPostBody) SetUserMapping(v LdapProviderPostBodyUserMapping)` -SetServiceProvider sets ServiceProvider field to given value. +SetUserMapping sets UserMapping field to given value. + + +### GetGroupMapping + +`func (o *IdpPostBody) GetGroupMapping() LdapProviderPostBodyGroupMapping` + +GetGroupMapping returns the GroupMapping field if non-nil, zero value otherwise. + +### GetGroupMappingOk + +`func (o *IdpPostBody) GetGroupMappingOk() (*LdapProviderPostBodyGroupMapping, bool)` + +GetGroupMappingOk returns a tuple with the GroupMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupMapping + +`func (o *IdpPostBody) SetGroupMapping(v LdapProviderPostBodyGroupMapping)` + +SetGroupMapping sets GroupMapping field to given value. -### HasServiceProvider -`func (o *IdpPostBody) HasServiceProvider() bool` +### GetOidcProvider + +`func (o *IdpPostBody) GetOidcProvider() OpenIDProviderDynamicPostBodyOidcProvider` + +GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. -HasServiceProvider returns a boolean if a field has been set. +### GetOidcProviderOk + +`func (o *IdpPostBody) GetOidcProviderOk() (*OpenIDProviderDynamicPostBodyOidcProvider, bool)` + +GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcProvider + +`func (o *IdpPostBody) SetOidcProvider(v OpenIDProviderDynamicPostBodyOidcProvider)` + +SetOidcProvider sets OidcProvider field to given value. + + +### GetAllowUntrustedCertificates + +`func (o *IdpPostBody) GetAllowUntrustedCertificates() bool` + +GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. + +### GetAllowUntrustedCertificatesOk + +`func (o *IdpPostBody) GetAllowUntrustedCertificatesOk() (*bool, bool)` + +GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUntrustedCertificates + +`func (o *IdpPostBody) SetAllowUntrustedCertificates(v bool)` + +SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. + +### HasAllowUntrustedCertificates + +`func (o *IdpPostBody) HasAllowUntrustedCertificates() bool` + +HasAllowUntrustedCertificates returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/idp/docs/IdpSummary.md b/idp/docs/IdpSummary.md index 39a6f4c..d09cb8d 100644 --- a/idp/docs/IdpSummary.md +++ b/idp/docs/IdpSummary.md @@ -4,16 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ProviderId** | Pointer to **string** | | [optional] -**OrgId** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**ModelType**](ModelType.md) | | [optional] +**ProviderId** | **string** | | +**OrgId** | **string** | | +**Name** | **string** | | +**Type** | [**IdpSummaryType**](IdpSummaryType.md) | | ## Methods ### NewIdpSummary -`func NewIdpSummary() *IdpSummary` +`func NewIdpSummary(providerId string, orgId string, name string, type_ IdpSummaryType, ) *IdpSummary` NewIdpSummary instantiates a new IdpSummary object This constructor will assign default values to properties that have it defined, @@ -47,11 +47,6 @@ and a boolean to check if the value has been set. SetProviderId sets ProviderId field to given value. -### HasProviderId - -`func (o *IdpSummary) HasProviderId() bool` - -HasProviderId returns a boolean if a field has been set. ### GetOrgId @@ -72,11 +67,6 @@ and a boolean to check if the value has been set. SetOrgId sets OrgId field to given value. -### HasOrgId - -`func (o *IdpSummary) HasOrgId() bool` - -HasOrgId returns a boolean if a field has been set. ### GetName @@ -97,36 +87,26 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### HasName - -`func (o *IdpSummary) HasName() bool` - -HasName returns a boolean if a field has been set. ### GetType -`func (o *IdpSummary) GetType() ModelType` +`func (o *IdpSummary) GetType() IdpSummaryType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *IdpSummary) GetTypeOk() (*ModelType, bool)` +`func (o *IdpSummary) GetTypeOk() (*IdpSummaryType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *IdpSummary) SetType(v ModelType)` +`func (o *IdpSummary) SetType(v IdpSummaryType)` SetType sets Type field to given value. -### HasType - -`func (o *IdpSummary) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/idp/docs/IdpSummaryType.md b/idp/docs/IdpSummaryType.md new file mode 100644 index 0000000..b065da1 --- /dev/null +++ b/idp/docs/IdpSummaryType.md @@ -0,0 +1,77 @@ +# IdpSummaryType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Name** | **string** | | + +## Methods + +### NewIdpSummaryType + +`func NewIdpSummaryType(name string, ) *IdpSummaryType` + +NewIdpSummaryType instantiates a new IdpSummaryType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIdpSummaryTypeWithDefaults + +`func NewIdpSummaryTypeWithDefaults() *IdpSummaryType` + +NewIdpSummaryTypeWithDefaults instantiates a new IdpSummaryType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *IdpSummaryType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *IdpSummaryType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *IdpSummaryType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *IdpSummaryType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *IdpSummaryType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IdpSummaryType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *IdpSummaryType) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderGet.md b/idp/docs/LdapProviderGet.md new file mode 100644 index 0000000..c42ddea --- /dev/null +++ b/idp/docs/LdapProviderGet.md @@ -0,0 +1,266 @@ +# LdapProviderGet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserMapping** | [**LdapProviderPostBodyUserMapping**](LdapProviderPostBodyUserMapping.md) | | +**Filters** | [**LdapProviderPostBodyFilters**](LdapProviderPostBodyFilters.md) | | +**Name** | **string** | | +**OrgId** | **string** | | +**Dns** | [**LdapProviderPostBodySearchBases**](LdapProviderPostBodySearchBases.md) | | +**GroupMapping** | [**LdapProviderPostBodyGroupMapping**](LdapProviderPostBodyGroupMapping.md) | | +**Connection** | [**LdapProviderPostBodyConnection**](LdapProviderPostBodyConnection.md) | | +**ArcNamespace** | Pointer to **string** | | [optional] +**ProviderId** | **string** | | +**Type** | [**LdapProviderPostBodyType**](LdapProviderPostBodyType.md) | | +**SearchBases** | [**LdapProviderPostBodySearchBases**](LdapProviderPostBodySearchBases.md) | | + +## Methods + +### NewLdapProviderGet + +`func NewLdapProviderGet(userMapping LdapProviderPostBodyUserMapping, filters LdapProviderPostBodyFilters, name string, orgId string, dns LdapProviderPostBodySearchBases, groupMapping LdapProviderPostBodyGroupMapping, connection LdapProviderPostBodyConnection, providerId string, type_ LdapProviderPostBodyType, searchBases LdapProviderPostBodySearchBases, ) *LdapProviderGet` + +NewLdapProviderGet instantiates a new LdapProviderGet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderGetWithDefaults + +`func NewLdapProviderGetWithDefaults() *LdapProviderGet` + +NewLdapProviderGetWithDefaults instantiates a new LdapProviderGet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUserMapping + +`func (o *LdapProviderGet) GetUserMapping() LdapProviderPostBodyUserMapping` + +GetUserMapping returns the UserMapping field if non-nil, zero value otherwise. + +### GetUserMappingOk + +`func (o *LdapProviderGet) GetUserMappingOk() (*LdapProviderPostBodyUserMapping, bool)` + +GetUserMappingOk returns a tuple with the UserMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserMapping + +`func (o *LdapProviderGet) SetUserMapping(v LdapProviderPostBodyUserMapping)` + +SetUserMapping sets UserMapping field to given value. + + +### GetFilters + +`func (o *LdapProviderGet) GetFilters() LdapProviderPostBodyFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *LdapProviderGet) GetFiltersOk() (*LdapProviderPostBodyFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *LdapProviderGet) SetFilters(v LdapProviderPostBodyFilters)` + +SetFilters sets Filters field to given value. + + +### GetName + +`func (o *LdapProviderGet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LdapProviderGet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LdapProviderGet) SetName(v string)` + +SetName sets Name field to given value. + + +### GetOrgId + +`func (o *LdapProviderGet) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *LdapProviderGet) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *LdapProviderGet) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + + +### GetDns + +`func (o *LdapProviderGet) GetDns() LdapProviderPostBodySearchBases` + +GetDns returns the Dns field if non-nil, zero value otherwise. + +### GetDnsOk + +`func (o *LdapProviderGet) GetDnsOk() (*LdapProviderPostBodySearchBases, bool)` + +GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDns + +`func (o *LdapProviderGet) SetDns(v LdapProviderPostBodySearchBases)` + +SetDns sets Dns field to given value. + + +### GetGroupMapping + +`func (o *LdapProviderGet) GetGroupMapping() LdapProviderPostBodyGroupMapping` + +GetGroupMapping returns the GroupMapping field if non-nil, zero value otherwise. + +### GetGroupMappingOk + +`func (o *LdapProviderGet) GetGroupMappingOk() (*LdapProviderPostBodyGroupMapping, bool)` + +GetGroupMappingOk returns a tuple with the GroupMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupMapping + +`func (o *LdapProviderGet) SetGroupMapping(v LdapProviderPostBodyGroupMapping)` + +SetGroupMapping sets GroupMapping field to given value. + + +### GetConnection + +`func (o *LdapProviderGet) GetConnection() LdapProviderPostBodyConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *LdapProviderGet) GetConnectionOk() (*LdapProviderPostBodyConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *LdapProviderGet) SetConnection(v LdapProviderPostBodyConnection)` + +SetConnection sets Connection field to given value. + + +### GetArcNamespace + +`func (o *LdapProviderGet) GetArcNamespace() string` + +GetArcNamespace returns the ArcNamespace field if non-nil, zero value otherwise. + +### GetArcNamespaceOk + +`func (o *LdapProviderGet) GetArcNamespaceOk() (*string, bool)` + +GetArcNamespaceOk returns a tuple with the ArcNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArcNamespace + +`func (o *LdapProviderGet) SetArcNamespace(v string)` + +SetArcNamespace sets ArcNamespace field to given value. + +### HasArcNamespace + +`func (o *LdapProviderGet) HasArcNamespace() bool` + +HasArcNamespace returns a boolean if a field has been set. + +### GetProviderId + +`func (o *LdapProviderGet) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *LdapProviderGet) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *LdapProviderGet) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + + +### GetType + +`func (o *LdapProviderGet) GetType() LdapProviderPostBodyType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LdapProviderGet) GetTypeOk() (*LdapProviderPostBodyType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LdapProviderGet) SetType(v LdapProviderPostBodyType)` + +SetType sets Type field to given value. + + +### GetSearchBases + +`func (o *LdapProviderGet) GetSearchBases() LdapProviderPostBodySearchBases` + +GetSearchBases returns the SearchBases field if non-nil, zero value otherwise. + +### GetSearchBasesOk + +`func (o *LdapProviderGet) GetSearchBasesOk() (*LdapProviderPostBodySearchBases, bool)` + +GetSearchBasesOk returns a tuple with the SearchBases field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchBases + +`func (o *LdapProviderGet) SetSearchBases(v LdapProviderPostBodySearchBases)` + +SetSearchBases sets SearchBases field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPatch.md b/idp/docs/LdapProviderPatch.md new file mode 100644 index 0000000..991ad37 --- /dev/null +++ b/idp/docs/LdapProviderPatch.md @@ -0,0 +1,238 @@ +# LdapProviderPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to [**SamlProviderPatchType**](SamlProviderPatchType.md) | | [optional] +**Connection** | Pointer to [**LdapProviderPatchConnection**](LdapProviderPatchConnection.md) | | [optional] +**SearchBases** | Pointer to [**LdapProviderPatchSearchBases**](LdapProviderPatchSearchBases.md) | | [optional] +**Dns** | Pointer to [**LdapProviderPatchSearchBases**](LdapProviderPatchSearchBases.md) | | [optional] +**Filters** | Pointer to [**LdapProviderPatchFilters**](LdapProviderPatchFilters.md) | | [optional] +**UserMapping** | Pointer to [**LdapProviderPatchUserMapping**](LdapProviderPatchUserMapping.md) | | [optional] +**GroupMapping** | Pointer to [**LdapProviderPatchGroupMapping**](LdapProviderPatchGroupMapping.md) | | [optional] + +## Methods + +### NewLdapProviderPatch + +`func NewLdapProviderPatch() *LdapProviderPatch` + +NewLdapProviderPatch instantiates a new LdapProviderPatch object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPatchWithDefaults + +`func NewLdapProviderPatchWithDefaults() *LdapProviderPatch` + +NewLdapProviderPatchWithDefaults instantiates a new LdapProviderPatch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *LdapProviderPatch) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LdapProviderPatch) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LdapProviderPatch) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LdapProviderPatch) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *LdapProviderPatch) GetType() SamlProviderPatchType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LdapProviderPatch) GetTypeOk() (*SamlProviderPatchType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LdapProviderPatch) SetType(v SamlProviderPatchType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *LdapProviderPatch) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetConnection + +`func (o *LdapProviderPatch) GetConnection() LdapProviderPatchConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *LdapProviderPatch) GetConnectionOk() (*LdapProviderPatchConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *LdapProviderPatch) SetConnection(v LdapProviderPatchConnection)` + +SetConnection sets Connection field to given value. + +### HasConnection + +`func (o *LdapProviderPatch) HasConnection() bool` + +HasConnection returns a boolean if a field has been set. + +### GetSearchBases + +`func (o *LdapProviderPatch) GetSearchBases() LdapProviderPatchSearchBases` + +GetSearchBases returns the SearchBases field if non-nil, zero value otherwise. + +### GetSearchBasesOk + +`func (o *LdapProviderPatch) GetSearchBasesOk() (*LdapProviderPatchSearchBases, bool)` + +GetSearchBasesOk returns a tuple with the SearchBases field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchBases + +`func (o *LdapProviderPatch) SetSearchBases(v LdapProviderPatchSearchBases)` + +SetSearchBases sets SearchBases field to given value. + +### HasSearchBases + +`func (o *LdapProviderPatch) HasSearchBases() bool` + +HasSearchBases returns a boolean if a field has been set. + +### GetDns + +`func (o *LdapProviderPatch) GetDns() LdapProviderPatchSearchBases` + +GetDns returns the Dns field if non-nil, zero value otherwise. + +### GetDnsOk + +`func (o *LdapProviderPatch) GetDnsOk() (*LdapProviderPatchSearchBases, bool)` + +GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDns + +`func (o *LdapProviderPatch) SetDns(v LdapProviderPatchSearchBases)` + +SetDns sets Dns field to given value. + +### HasDns + +`func (o *LdapProviderPatch) HasDns() bool` + +HasDns returns a boolean if a field has been set. + +### GetFilters + +`func (o *LdapProviderPatch) GetFilters() LdapProviderPatchFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *LdapProviderPatch) GetFiltersOk() (*LdapProviderPatchFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *LdapProviderPatch) SetFilters(v LdapProviderPatchFilters)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *LdapProviderPatch) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetUserMapping + +`func (o *LdapProviderPatch) GetUserMapping() LdapProviderPatchUserMapping` + +GetUserMapping returns the UserMapping field if non-nil, zero value otherwise. + +### GetUserMappingOk + +`func (o *LdapProviderPatch) GetUserMappingOk() (*LdapProviderPatchUserMapping, bool)` + +GetUserMappingOk returns a tuple with the UserMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserMapping + +`func (o *LdapProviderPatch) SetUserMapping(v LdapProviderPatchUserMapping)` + +SetUserMapping sets UserMapping field to given value. + +### HasUserMapping + +`func (o *LdapProviderPatch) HasUserMapping() bool` + +HasUserMapping returns a boolean if a field has been set. + +### GetGroupMapping + +`func (o *LdapProviderPatch) GetGroupMapping() LdapProviderPatchGroupMapping` + +GetGroupMapping returns the GroupMapping field if non-nil, zero value otherwise. + +### GetGroupMappingOk + +`func (o *LdapProviderPatch) GetGroupMappingOk() (*LdapProviderPatchGroupMapping, bool)` + +GetGroupMappingOk returns a tuple with the GroupMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupMapping + +`func (o *LdapProviderPatch) SetGroupMapping(v LdapProviderPatchGroupMapping)` + +SetGroupMapping sets GroupMapping field to given value. + +### HasGroupMapping + +`func (o *LdapProviderPatch) HasGroupMapping() bool` + +HasGroupMapping returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPatchConnection.md b/idp/docs/LdapProviderPatchConnection.md new file mode 100644 index 0000000..8cc3452 --- /dev/null +++ b/idp/docs/LdapProviderPatchConnection.md @@ -0,0 +1,212 @@ +# LdapProviderPatchConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Binddn** | Pointer to **string** | | [optional] +**ConnectTimeoutSeconds** | Pointer to **float32** | | [optional] +**Host** | Pointer to **string** | | [optional] +**OperationTimeoutMs** | Pointer to **float32** | | [optional] +**Password** | Pointer to **string** | | [optional] +**Port** | Pointer to **float32** | | [optional] +**Validatecert** | Pointer to **bool** | | [optional] + +## Methods + +### NewLdapProviderPatchConnection + +`func NewLdapProviderPatchConnection() *LdapProviderPatchConnection` + +NewLdapProviderPatchConnection instantiates a new LdapProviderPatchConnection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPatchConnectionWithDefaults + +`func NewLdapProviderPatchConnectionWithDefaults() *LdapProviderPatchConnection` + +NewLdapProviderPatchConnectionWithDefaults instantiates a new LdapProviderPatchConnection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBinddn + +`func (o *LdapProviderPatchConnection) GetBinddn() string` + +GetBinddn returns the Binddn field if non-nil, zero value otherwise. + +### GetBinddnOk + +`func (o *LdapProviderPatchConnection) GetBinddnOk() (*string, bool)` + +GetBinddnOk returns a tuple with the Binddn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinddn + +`func (o *LdapProviderPatchConnection) SetBinddn(v string)` + +SetBinddn sets Binddn field to given value. + +### HasBinddn + +`func (o *LdapProviderPatchConnection) HasBinddn() bool` + +HasBinddn returns a boolean if a field has been set. + +### GetConnectTimeoutSeconds + +`func (o *LdapProviderPatchConnection) GetConnectTimeoutSeconds() float32` + +GetConnectTimeoutSeconds returns the ConnectTimeoutSeconds field if non-nil, zero value otherwise. + +### GetConnectTimeoutSecondsOk + +`func (o *LdapProviderPatchConnection) GetConnectTimeoutSecondsOk() (*float32, bool)` + +GetConnectTimeoutSecondsOk returns a tuple with the ConnectTimeoutSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectTimeoutSeconds + +`func (o *LdapProviderPatchConnection) SetConnectTimeoutSeconds(v float32)` + +SetConnectTimeoutSeconds sets ConnectTimeoutSeconds field to given value. + +### HasConnectTimeoutSeconds + +`func (o *LdapProviderPatchConnection) HasConnectTimeoutSeconds() bool` + +HasConnectTimeoutSeconds returns a boolean if a field has been set. + +### GetHost + +`func (o *LdapProviderPatchConnection) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *LdapProviderPatchConnection) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *LdapProviderPatchConnection) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *LdapProviderPatchConnection) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetOperationTimeoutMs + +`func (o *LdapProviderPatchConnection) GetOperationTimeoutMs() float32` + +GetOperationTimeoutMs returns the OperationTimeoutMs field if non-nil, zero value otherwise. + +### GetOperationTimeoutMsOk + +`func (o *LdapProviderPatchConnection) GetOperationTimeoutMsOk() (*float32, bool)` + +GetOperationTimeoutMsOk returns a tuple with the OperationTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationTimeoutMs + +`func (o *LdapProviderPatchConnection) SetOperationTimeoutMs(v float32)` + +SetOperationTimeoutMs sets OperationTimeoutMs field to given value. + +### HasOperationTimeoutMs + +`func (o *LdapProviderPatchConnection) HasOperationTimeoutMs() bool` + +HasOperationTimeoutMs returns a boolean if a field has been set. + +### GetPassword + +`func (o *LdapProviderPatchConnection) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *LdapProviderPatchConnection) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *LdapProviderPatchConnection) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *LdapProviderPatchConnection) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetPort + +`func (o *LdapProviderPatchConnection) GetPort() float32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *LdapProviderPatchConnection) GetPortOk() (*float32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *LdapProviderPatchConnection) SetPort(v float32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *LdapProviderPatchConnection) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetValidatecert + +`func (o *LdapProviderPatchConnection) GetValidatecert() bool` + +GetValidatecert returns the Validatecert field if non-nil, zero value otherwise. + +### GetValidatecertOk + +`func (o *LdapProviderPatchConnection) GetValidatecertOk() (*bool, bool)` + +GetValidatecertOk returns a tuple with the Validatecert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidatecert + +`func (o *LdapProviderPatchConnection) SetValidatecert(v bool)` + +SetValidatecert sets Validatecert field to given value. + +### HasValidatecert + +`func (o *LdapProviderPatchConnection) HasValidatecert() bool` + +HasValidatecert returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPatchFilters.md b/idp/docs/LdapProviderPatchFilters.md new file mode 100644 index 0000000..73a93a7 --- /dev/null +++ b/idp/docs/LdapProviderPatchFilters.md @@ -0,0 +1,82 @@ +# LdapProviderPatchFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupsByUsername** | Pointer to **string** | | [optional] +**UserByUsername** | Pointer to **string** | | [optional] + +## Methods + +### NewLdapProviderPatchFilters + +`func NewLdapProviderPatchFilters() *LdapProviderPatchFilters` + +NewLdapProviderPatchFilters instantiates a new LdapProviderPatchFilters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPatchFiltersWithDefaults + +`func NewLdapProviderPatchFiltersWithDefaults() *LdapProviderPatchFilters` + +NewLdapProviderPatchFiltersWithDefaults instantiates a new LdapProviderPatchFilters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupsByUsername + +`func (o *LdapProviderPatchFilters) GetGroupsByUsername() string` + +GetGroupsByUsername returns the GroupsByUsername field if non-nil, zero value otherwise. + +### GetGroupsByUsernameOk + +`func (o *LdapProviderPatchFilters) GetGroupsByUsernameOk() (*string, bool)` + +GetGroupsByUsernameOk returns a tuple with the GroupsByUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupsByUsername + +`func (o *LdapProviderPatchFilters) SetGroupsByUsername(v string)` + +SetGroupsByUsername sets GroupsByUsername field to given value. + +### HasGroupsByUsername + +`func (o *LdapProviderPatchFilters) HasGroupsByUsername() bool` + +HasGroupsByUsername returns a boolean if a field has been set. + +### GetUserByUsername + +`func (o *LdapProviderPatchFilters) GetUserByUsername() string` + +GetUserByUsername returns the UserByUsername field if non-nil, zero value otherwise. + +### GetUserByUsernameOk + +`func (o *LdapProviderPatchFilters) GetUserByUsernameOk() (*string, bool)` + +GetUserByUsernameOk returns a tuple with the UserByUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserByUsername + +`func (o *LdapProviderPatchFilters) SetUserByUsername(v string)` + +SetUserByUsername sets UserByUsername field to given value. + +### HasUserByUsername + +`func (o *LdapProviderPatchFilters) HasUserByUsername() bool` + +HasUserByUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPatchGroupMapping.md b/idp/docs/LdapProviderPatchGroupMapping.md new file mode 100644 index 0000000..c236582 --- /dev/null +++ b/idp/docs/LdapProviderPatchGroupMapping.md @@ -0,0 +1,82 @@ +# LdapProviderPatchGroupMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupName** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] + +## Methods + +### NewLdapProviderPatchGroupMapping + +`func NewLdapProviderPatchGroupMapping() *LdapProviderPatchGroupMapping` + +NewLdapProviderPatchGroupMapping instantiates a new LdapProviderPatchGroupMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPatchGroupMappingWithDefaults + +`func NewLdapProviderPatchGroupMappingWithDefaults() *LdapProviderPatchGroupMapping` + +NewLdapProviderPatchGroupMappingWithDefaults instantiates a new LdapProviderPatchGroupMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupName + +`func (o *LdapProviderPatchGroupMapping) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *LdapProviderPatchGroupMapping) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *LdapProviderPatchGroupMapping) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *LdapProviderPatchGroupMapping) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### GetId + +`func (o *LdapProviderPatchGroupMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LdapProviderPatchGroupMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LdapProviderPatchGroupMapping) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *LdapProviderPatchGroupMapping) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPatchSearchBases.md b/idp/docs/LdapProviderPatchSearchBases.md new file mode 100644 index 0000000..9daa7ec --- /dev/null +++ b/idp/docs/LdapProviderPatchSearchBases.md @@ -0,0 +1,82 @@ +# LdapProviderPatchSearchBases + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | Pointer to **string** | | [optional] +**User** | Pointer to **string** | | [optional] + +## Methods + +### NewLdapProviderPatchSearchBases + +`func NewLdapProviderPatchSearchBases() *LdapProviderPatchSearchBases` + +NewLdapProviderPatchSearchBases instantiates a new LdapProviderPatchSearchBases object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPatchSearchBasesWithDefaults + +`func NewLdapProviderPatchSearchBasesWithDefaults() *LdapProviderPatchSearchBases` + +NewLdapProviderPatchSearchBasesWithDefaults instantiates a new LdapProviderPatchSearchBases object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *LdapProviderPatchSearchBases) GetGroup() string` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *LdapProviderPatchSearchBases) GetGroupOk() (*string, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *LdapProviderPatchSearchBases) SetGroup(v string)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *LdapProviderPatchSearchBases) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetUser + +`func (o *LdapProviderPatchSearchBases) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *LdapProviderPatchSearchBases) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *LdapProviderPatchSearchBases) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *LdapProviderPatchSearchBases) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPatchUserMapping.md b/idp/docs/LdapProviderPatchUserMapping.md new file mode 100644 index 0000000..cceb854 --- /dev/null +++ b/idp/docs/LdapProviderPatchUserMapping.md @@ -0,0 +1,160 @@ +# LdapProviderPatchUserMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewLdapProviderPatchUserMapping + +`func NewLdapProviderPatchUserMapping() *LdapProviderPatchUserMapping` + +NewLdapProviderPatchUserMapping instantiates a new LdapProviderPatchUserMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPatchUserMappingWithDefaults + +`func NewLdapProviderPatchUserMappingWithDefaults() *LdapProviderPatchUserMapping` + +NewLdapProviderPatchUserMappingWithDefaults instantiates a new LdapProviderPatchUserMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *LdapProviderPatchUserMapping) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *LdapProviderPatchUserMapping) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *LdapProviderPatchUserMapping) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *LdapProviderPatchUserMapping) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetFirstName + +`func (o *LdapProviderPatchUserMapping) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *LdapProviderPatchUserMapping) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *LdapProviderPatchUserMapping) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *LdapProviderPatchUserMapping) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetId + +`func (o *LdapProviderPatchUserMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LdapProviderPatchUserMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LdapProviderPatchUserMapping) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *LdapProviderPatchUserMapping) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLastName + +`func (o *LdapProviderPatchUserMapping) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *LdapProviderPatchUserMapping) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *LdapProviderPatchUserMapping) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *LdapProviderPatchUserMapping) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetUsername + +`func (o *LdapProviderPatchUserMapping) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *LdapProviderPatchUserMapping) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *LdapProviderPatchUserMapping) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *LdapProviderPatchUserMapping) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPostBody.md b/idp/docs/LdapProviderPostBody.md new file mode 100644 index 0000000..2da5f78 --- /dev/null +++ b/idp/docs/LdapProviderPostBody.md @@ -0,0 +1,224 @@ +# LdapProviderPostBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ArcNamespace** | Pointer to **string** | | [optional] +**Type** | [**LdapProviderPostBodyType**](LdapProviderPostBodyType.md) | | +**Connection** | [**LdapProviderPostBodyConnection**](LdapProviderPostBodyConnection.md) | | +**SearchBases** | [**LdapProviderPostBodySearchBases**](LdapProviderPostBodySearchBases.md) | | +**Dns** | [**LdapProviderPostBodySearchBases**](LdapProviderPostBodySearchBases.md) | | +**Filters** | [**LdapProviderPostBodyFilters**](LdapProviderPostBodyFilters.md) | | +**UserMapping** | [**LdapProviderPostBodyUserMapping**](LdapProviderPostBodyUserMapping.md) | | +**GroupMapping** | [**LdapProviderPostBodyGroupMapping**](LdapProviderPostBodyGroupMapping.md) | | + +## Methods + +### NewLdapProviderPostBody + +`func NewLdapProviderPostBody(name string, type_ LdapProviderPostBodyType, connection LdapProviderPostBodyConnection, searchBases LdapProviderPostBodySearchBases, dns LdapProviderPostBodySearchBases, filters LdapProviderPostBodyFilters, userMapping LdapProviderPostBodyUserMapping, groupMapping LdapProviderPostBodyGroupMapping, ) *LdapProviderPostBody` + +NewLdapProviderPostBody instantiates a new LdapProviderPostBody object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPostBodyWithDefaults + +`func NewLdapProviderPostBodyWithDefaults() *LdapProviderPostBody` + +NewLdapProviderPostBodyWithDefaults instantiates a new LdapProviderPostBody object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *LdapProviderPostBody) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LdapProviderPostBody) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LdapProviderPostBody) SetName(v string)` + +SetName sets Name field to given value. + + +### GetArcNamespace + +`func (o *LdapProviderPostBody) GetArcNamespace() string` + +GetArcNamespace returns the ArcNamespace field if non-nil, zero value otherwise. + +### GetArcNamespaceOk + +`func (o *LdapProviderPostBody) GetArcNamespaceOk() (*string, bool)` + +GetArcNamespaceOk returns a tuple with the ArcNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArcNamespace + +`func (o *LdapProviderPostBody) SetArcNamespace(v string)` + +SetArcNamespace sets ArcNamespace field to given value. + +### HasArcNamespace + +`func (o *LdapProviderPostBody) HasArcNamespace() bool` + +HasArcNamespace returns a boolean if a field has been set. + +### GetType + +`func (o *LdapProviderPostBody) GetType() LdapProviderPostBodyType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LdapProviderPostBody) GetTypeOk() (*LdapProviderPostBodyType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LdapProviderPostBody) SetType(v LdapProviderPostBodyType)` + +SetType sets Type field to given value. + + +### GetConnection + +`func (o *LdapProviderPostBody) GetConnection() LdapProviderPostBodyConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *LdapProviderPostBody) GetConnectionOk() (*LdapProviderPostBodyConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *LdapProviderPostBody) SetConnection(v LdapProviderPostBodyConnection)` + +SetConnection sets Connection field to given value. + + +### GetSearchBases + +`func (o *LdapProviderPostBody) GetSearchBases() LdapProviderPostBodySearchBases` + +GetSearchBases returns the SearchBases field if non-nil, zero value otherwise. + +### GetSearchBasesOk + +`func (o *LdapProviderPostBody) GetSearchBasesOk() (*LdapProviderPostBodySearchBases, bool)` + +GetSearchBasesOk returns a tuple with the SearchBases field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchBases + +`func (o *LdapProviderPostBody) SetSearchBases(v LdapProviderPostBodySearchBases)` + +SetSearchBases sets SearchBases field to given value. + + +### GetDns + +`func (o *LdapProviderPostBody) GetDns() LdapProviderPostBodySearchBases` + +GetDns returns the Dns field if non-nil, zero value otherwise. + +### GetDnsOk + +`func (o *LdapProviderPostBody) GetDnsOk() (*LdapProviderPostBodySearchBases, bool)` + +GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDns + +`func (o *LdapProviderPostBody) SetDns(v LdapProviderPostBodySearchBases)` + +SetDns sets Dns field to given value. + + +### GetFilters + +`func (o *LdapProviderPostBody) GetFilters() LdapProviderPostBodyFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *LdapProviderPostBody) GetFiltersOk() (*LdapProviderPostBodyFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *LdapProviderPostBody) SetFilters(v LdapProviderPostBodyFilters)` + +SetFilters sets Filters field to given value. + + +### GetUserMapping + +`func (o *LdapProviderPostBody) GetUserMapping() LdapProviderPostBodyUserMapping` + +GetUserMapping returns the UserMapping field if non-nil, zero value otherwise. + +### GetUserMappingOk + +`func (o *LdapProviderPostBody) GetUserMappingOk() (*LdapProviderPostBodyUserMapping, bool)` + +GetUserMappingOk returns a tuple with the UserMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserMapping + +`func (o *LdapProviderPostBody) SetUserMapping(v LdapProviderPostBodyUserMapping)` + +SetUserMapping sets UserMapping field to given value. + + +### GetGroupMapping + +`func (o *LdapProviderPostBody) GetGroupMapping() LdapProviderPostBodyGroupMapping` + +GetGroupMapping returns the GroupMapping field if non-nil, zero value otherwise. + +### GetGroupMappingOk + +`func (o *LdapProviderPostBody) GetGroupMappingOk() (*LdapProviderPostBodyGroupMapping, bool)` + +GetGroupMappingOk returns a tuple with the GroupMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupMapping + +`func (o *LdapProviderPostBody) SetGroupMapping(v LdapProviderPostBodyGroupMapping)` + +SetGroupMapping sets GroupMapping field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPostBodyConnection.md b/idp/docs/LdapProviderPostBodyConnection.md new file mode 100644 index 0000000..3146234 --- /dev/null +++ b/idp/docs/LdapProviderPostBodyConnection.md @@ -0,0 +1,182 @@ +# LdapProviderPostBodyConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Binddn** | **string** | | +**ConnectTimeoutSeconds** | **float32** | | +**Host** | **string** | | +**OperationTimeoutMs** | **float32** | | +**Password** | **string** | | +**Port** | **float32** | | +**Validatecert** | Pointer to **bool** | | [optional] + +## Methods + +### NewLdapProviderPostBodyConnection + +`func NewLdapProviderPostBodyConnection(binddn string, connectTimeoutSeconds float32, host string, operationTimeoutMs float32, password string, port float32, ) *LdapProviderPostBodyConnection` + +NewLdapProviderPostBodyConnection instantiates a new LdapProviderPostBodyConnection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPostBodyConnectionWithDefaults + +`func NewLdapProviderPostBodyConnectionWithDefaults() *LdapProviderPostBodyConnection` + +NewLdapProviderPostBodyConnectionWithDefaults instantiates a new LdapProviderPostBodyConnection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBinddn + +`func (o *LdapProviderPostBodyConnection) GetBinddn() string` + +GetBinddn returns the Binddn field if non-nil, zero value otherwise. + +### GetBinddnOk + +`func (o *LdapProviderPostBodyConnection) GetBinddnOk() (*string, bool)` + +GetBinddnOk returns a tuple with the Binddn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinddn + +`func (o *LdapProviderPostBodyConnection) SetBinddn(v string)` + +SetBinddn sets Binddn field to given value. + + +### GetConnectTimeoutSeconds + +`func (o *LdapProviderPostBodyConnection) GetConnectTimeoutSeconds() float32` + +GetConnectTimeoutSeconds returns the ConnectTimeoutSeconds field if non-nil, zero value otherwise. + +### GetConnectTimeoutSecondsOk + +`func (o *LdapProviderPostBodyConnection) GetConnectTimeoutSecondsOk() (*float32, bool)` + +GetConnectTimeoutSecondsOk returns a tuple with the ConnectTimeoutSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectTimeoutSeconds + +`func (o *LdapProviderPostBodyConnection) SetConnectTimeoutSeconds(v float32)` + +SetConnectTimeoutSeconds sets ConnectTimeoutSeconds field to given value. + + +### GetHost + +`func (o *LdapProviderPostBodyConnection) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *LdapProviderPostBodyConnection) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *LdapProviderPostBodyConnection) SetHost(v string)` + +SetHost sets Host field to given value. + + +### GetOperationTimeoutMs + +`func (o *LdapProviderPostBodyConnection) GetOperationTimeoutMs() float32` + +GetOperationTimeoutMs returns the OperationTimeoutMs field if non-nil, zero value otherwise. + +### GetOperationTimeoutMsOk + +`func (o *LdapProviderPostBodyConnection) GetOperationTimeoutMsOk() (*float32, bool)` + +GetOperationTimeoutMsOk returns a tuple with the OperationTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationTimeoutMs + +`func (o *LdapProviderPostBodyConnection) SetOperationTimeoutMs(v float32)` + +SetOperationTimeoutMs sets OperationTimeoutMs field to given value. + + +### GetPassword + +`func (o *LdapProviderPostBodyConnection) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *LdapProviderPostBodyConnection) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *LdapProviderPostBodyConnection) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetPort + +`func (o *LdapProviderPostBodyConnection) GetPort() float32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *LdapProviderPostBodyConnection) GetPortOk() (*float32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *LdapProviderPostBodyConnection) SetPort(v float32)` + +SetPort sets Port field to given value. + + +### GetValidatecert + +`func (o *LdapProviderPostBodyConnection) GetValidatecert() bool` + +GetValidatecert returns the Validatecert field if non-nil, zero value otherwise. + +### GetValidatecertOk + +`func (o *LdapProviderPostBodyConnection) GetValidatecertOk() (*bool, bool)` + +GetValidatecertOk returns a tuple with the Validatecert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidatecert + +`func (o *LdapProviderPostBodyConnection) SetValidatecert(v bool)` + +SetValidatecert sets Validatecert field to given value. + +### HasValidatecert + +`func (o *LdapProviderPostBodyConnection) HasValidatecert() bool` + +HasValidatecert returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPostBodyFilters.md b/idp/docs/LdapProviderPostBodyFilters.md new file mode 100644 index 0000000..8c2fe43 --- /dev/null +++ b/idp/docs/LdapProviderPostBodyFilters.md @@ -0,0 +1,72 @@ +# LdapProviderPostBodyFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupsByUsername** | **string** | | +**UserByUsername** | **string** | | + +## Methods + +### NewLdapProviderPostBodyFilters + +`func NewLdapProviderPostBodyFilters(groupsByUsername string, userByUsername string, ) *LdapProviderPostBodyFilters` + +NewLdapProviderPostBodyFilters instantiates a new LdapProviderPostBodyFilters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPostBodyFiltersWithDefaults + +`func NewLdapProviderPostBodyFiltersWithDefaults() *LdapProviderPostBodyFilters` + +NewLdapProviderPostBodyFiltersWithDefaults instantiates a new LdapProviderPostBodyFilters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupsByUsername + +`func (o *LdapProviderPostBodyFilters) GetGroupsByUsername() string` + +GetGroupsByUsername returns the GroupsByUsername field if non-nil, zero value otherwise. + +### GetGroupsByUsernameOk + +`func (o *LdapProviderPostBodyFilters) GetGroupsByUsernameOk() (*string, bool)` + +GetGroupsByUsernameOk returns a tuple with the GroupsByUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupsByUsername + +`func (o *LdapProviderPostBodyFilters) SetGroupsByUsername(v string)` + +SetGroupsByUsername sets GroupsByUsername field to given value. + + +### GetUserByUsername + +`func (o *LdapProviderPostBodyFilters) GetUserByUsername() string` + +GetUserByUsername returns the UserByUsername field if non-nil, zero value otherwise. + +### GetUserByUsernameOk + +`func (o *LdapProviderPostBodyFilters) GetUserByUsernameOk() (*string, bool)` + +GetUserByUsernameOk returns a tuple with the UserByUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserByUsername + +`func (o *LdapProviderPostBodyFilters) SetUserByUsername(v string)` + +SetUserByUsername sets UserByUsername field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPostBodyGroupMapping.md b/idp/docs/LdapProviderPostBodyGroupMapping.md new file mode 100644 index 0000000..c8cd825 --- /dev/null +++ b/idp/docs/LdapProviderPostBodyGroupMapping.md @@ -0,0 +1,72 @@ +# LdapProviderPostBodyGroupMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupName** | **string** | | +**Id** | **string** | | + +## Methods + +### NewLdapProviderPostBodyGroupMapping + +`func NewLdapProviderPostBodyGroupMapping(groupName string, id string, ) *LdapProviderPostBodyGroupMapping` + +NewLdapProviderPostBodyGroupMapping instantiates a new LdapProviderPostBodyGroupMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPostBodyGroupMappingWithDefaults + +`func NewLdapProviderPostBodyGroupMappingWithDefaults() *LdapProviderPostBodyGroupMapping` + +NewLdapProviderPostBodyGroupMappingWithDefaults instantiates a new LdapProviderPostBodyGroupMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupName + +`func (o *LdapProviderPostBodyGroupMapping) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *LdapProviderPostBodyGroupMapping) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *LdapProviderPostBodyGroupMapping) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + + +### GetId + +`func (o *LdapProviderPostBodyGroupMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LdapProviderPostBodyGroupMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LdapProviderPostBodyGroupMapping) SetId(v string)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPostBodySearchBases.md b/idp/docs/LdapProviderPostBodySearchBases.md new file mode 100644 index 0000000..f89cbf4 --- /dev/null +++ b/idp/docs/LdapProviderPostBodySearchBases.md @@ -0,0 +1,72 @@ +# LdapProviderPostBodySearchBases + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | **string** | | +**User** | **string** | | + +## Methods + +### NewLdapProviderPostBodySearchBases + +`func NewLdapProviderPostBodySearchBases(group string, user string, ) *LdapProviderPostBodySearchBases` + +NewLdapProviderPostBodySearchBases instantiates a new LdapProviderPostBodySearchBases object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPostBodySearchBasesWithDefaults + +`func NewLdapProviderPostBodySearchBasesWithDefaults() *LdapProviderPostBodySearchBases` + +NewLdapProviderPostBodySearchBasesWithDefaults instantiates a new LdapProviderPostBodySearchBases object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *LdapProviderPostBodySearchBases) GetGroup() string` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *LdapProviderPostBodySearchBases) GetGroupOk() (*string, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *LdapProviderPostBodySearchBases) SetGroup(v string)` + +SetGroup sets Group field to given value. + + +### GetUser + +`func (o *LdapProviderPostBodySearchBases) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *LdapProviderPostBodySearchBases) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *LdapProviderPostBodySearchBases) SetUser(v string)` + +SetUser sets User field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPostBodyType.md b/idp/docs/LdapProviderPostBodyType.md new file mode 100644 index 0000000..7a04c76 --- /dev/null +++ b/idp/docs/LdapProviderPostBodyType.md @@ -0,0 +1,77 @@ +# LdapProviderPostBodyType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Name** | **string** | | + +## Methods + +### NewLdapProviderPostBodyType + +`func NewLdapProviderPostBodyType(name string, ) *LdapProviderPostBodyType` + +NewLdapProviderPostBodyType instantiates a new LdapProviderPostBodyType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPostBodyTypeWithDefaults + +`func NewLdapProviderPostBodyTypeWithDefaults() *LdapProviderPostBodyType` + +NewLdapProviderPostBodyTypeWithDefaults instantiates a new LdapProviderPostBodyType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *LdapProviderPostBodyType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *LdapProviderPostBodyType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *LdapProviderPostBodyType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *LdapProviderPostBodyType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *LdapProviderPostBodyType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LdapProviderPostBodyType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LdapProviderPostBodyType) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/LdapProviderPostBodyUserMapping.md b/idp/docs/LdapProviderPostBodyUserMapping.md new file mode 100644 index 0000000..b815778 --- /dev/null +++ b/idp/docs/LdapProviderPostBodyUserMapping.md @@ -0,0 +1,135 @@ +# LdapProviderPostBodyUserMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | | +**FirstName** | **string** | | +**Id** | **string** | | +**LastName** | **string** | | +**Username** | **string** | | + +## Methods + +### NewLdapProviderPostBodyUserMapping + +`func NewLdapProviderPostBodyUserMapping(email string, firstName string, id string, lastName string, username string, ) *LdapProviderPostBodyUserMapping` + +NewLdapProviderPostBodyUserMapping instantiates a new LdapProviderPostBodyUserMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLdapProviderPostBodyUserMappingWithDefaults + +`func NewLdapProviderPostBodyUserMappingWithDefaults() *LdapProviderPostBodyUserMapping` + +NewLdapProviderPostBodyUserMappingWithDefaults instantiates a new LdapProviderPostBodyUserMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *LdapProviderPostBodyUserMapping) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *LdapProviderPostBodyUserMapping) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *LdapProviderPostBodyUserMapping) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetFirstName + +`func (o *LdapProviderPostBodyUserMapping) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *LdapProviderPostBodyUserMapping) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *LdapProviderPostBodyUserMapping) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + + +### GetId + +`func (o *LdapProviderPostBodyUserMapping) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LdapProviderPostBodyUserMapping) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LdapProviderPostBodyUserMapping) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLastName + +`func (o *LdapProviderPostBodyUserMapping) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *LdapProviderPostBodyUserMapping) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *LdapProviderPostBodyUserMapping) SetLastName(v string)` + +SetLastName sets LastName field to given value. + + +### GetUsername + +`func (o *LdapProviderPostBodyUserMapping) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *LdapProviderPostBodyUserMapping) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *LdapProviderPostBodyUserMapping) SetUsername(v string)` + +SetUsername sets Username field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderDynamicPostBody.md b/idp/docs/OpenIDProviderDynamicPostBody.md new file mode 100644 index 0000000..73b9364 --- /dev/null +++ b/idp/docs/OpenIDProviderDynamicPostBody.md @@ -0,0 +1,171 @@ +# OpenIDProviderDynamicPostBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ArcNamespace** | Pointer to **string** | | [optional] +**Type** | [**OpenIDProviderManualPostBodyType**](OpenIDProviderManualPostBodyType.md) | | +**OidcProvider** | [**OpenIDProviderDynamicPostBodyOidcProvider**](OpenIDProviderDynamicPostBodyOidcProvider.md) | | +**AllowUntrustedCertificates** | Pointer to **bool** | | [optional] +**LoginDisabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewOpenIDProviderDynamicPostBody + +`func NewOpenIDProviderDynamicPostBody(name string, type_ OpenIDProviderManualPostBodyType, oidcProvider OpenIDProviderDynamicPostBodyOidcProvider, ) *OpenIDProviderDynamicPostBody` + +NewOpenIDProviderDynamicPostBody instantiates a new OpenIDProviderDynamicPostBody object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderDynamicPostBodyWithDefaults + +`func NewOpenIDProviderDynamicPostBodyWithDefaults() *OpenIDProviderDynamicPostBody` + +NewOpenIDProviderDynamicPostBodyWithDefaults instantiates a new OpenIDProviderDynamicPostBody object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *OpenIDProviderDynamicPostBody) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OpenIDProviderDynamicPostBody) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OpenIDProviderDynamicPostBody) SetName(v string)` + +SetName sets Name field to given value. + + +### GetArcNamespace + +`func (o *OpenIDProviderDynamicPostBody) GetArcNamespace() string` + +GetArcNamespace returns the ArcNamespace field if non-nil, zero value otherwise. + +### GetArcNamespaceOk + +`func (o *OpenIDProviderDynamicPostBody) GetArcNamespaceOk() (*string, bool)` + +GetArcNamespaceOk returns a tuple with the ArcNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArcNamespace + +`func (o *OpenIDProviderDynamicPostBody) SetArcNamespace(v string)` + +SetArcNamespace sets ArcNamespace field to given value. + +### HasArcNamespace + +`func (o *OpenIDProviderDynamicPostBody) HasArcNamespace() bool` + +HasArcNamespace returns a boolean if a field has been set. + +### GetType + +`func (o *OpenIDProviderDynamicPostBody) GetType() OpenIDProviderManualPostBodyType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OpenIDProviderDynamicPostBody) GetTypeOk() (*OpenIDProviderManualPostBodyType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OpenIDProviderDynamicPostBody) SetType(v OpenIDProviderManualPostBodyType)` + +SetType sets Type field to given value. + + +### GetOidcProvider + +`func (o *OpenIDProviderDynamicPostBody) GetOidcProvider() OpenIDProviderDynamicPostBodyOidcProvider` + +GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. + +### GetOidcProviderOk + +`func (o *OpenIDProviderDynamicPostBody) GetOidcProviderOk() (*OpenIDProviderDynamicPostBodyOidcProvider, bool)` + +GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcProvider + +`func (o *OpenIDProviderDynamicPostBody) SetOidcProvider(v OpenIDProviderDynamicPostBodyOidcProvider)` + +SetOidcProvider sets OidcProvider field to given value. + + +### GetAllowUntrustedCertificates + +`func (o *OpenIDProviderDynamicPostBody) GetAllowUntrustedCertificates() bool` + +GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. + +### GetAllowUntrustedCertificatesOk + +`func (o *OpenIDProviderDynamicPostBody) GetAllowUntrustedCertificatesOk() (*bool, bool)` + +GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUntrustedCertificates + +`func (o *OpenIDProviderDynamicPostBody) SetAllowUntrustedCertificates(v bool)` + +SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. + +### HasAllowUntrustedCertificates + +`func (o *OpenIDProviderDynamicPostBody) HasAllowUntrustedCertificates() bool` + +HasAllowUntrustedCertificates returns a boolean if a field has been set. + +### GetLoginDisabled + +`func (o *OpenIDProviderDynamicPostBody) GetLoginDisabled() bool` + +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. + +### GetLoginDisabledOk + +`func (o *OpenIDProviderDynamicPostBody) GetLoginDisabledOk() (*bool, bool)` + +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginDisabled + +`func (o *OpenIDProviderDynamicPostBody) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *OpenIDProviderDynamicPostBody) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderDynamicPostBodyOidcProvider.md b/idp/docs/OpenIDProviderDynamicPostBodyOidcProvider.md new file mode 100644 index 0000000..726311c --- /dev/null +++ b/idp/docs/OpenIDProviderDynamicPostBodyOidcProvider.md @@ -0,0 +1,150 @@ +# OpenIDProviderDynamicPostBodyOidcProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Client** | [**OpenIDProviderDynamicPostBodyOidcProviderClient**](OpenIDProviderDynamicPostBodyOidcProviderClient.md) | | +**Issuer** | Pointer to **string** | | [optional] +**Urls** | [**OpenIDProviderManualPostBodyOidcProviderUrls**](OpenIDProviderManualPostBodyOidcProviderUrls.md) | | +**GroupScope** | Pointer to **string** | | [optional] +**ClaimsMapping** | Pointer to [**OpenIDProviderManualPostBodyOidcProviderClaimsMapping**](OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md) | | [optional] + +## Methods + +### NewOpenIDProviderDynamicPostBodyOidcProvider + +`func NewOpenIDProviderDynamicPostBodyOidcProvider(client OpenIDProviderDynamicPostBodyOidcProviderClient, urls OpenIDProviderManualPostBodyOidcProviderUrls, ) *OpenIDProviderDynamicPostBodyOidcProvider` + +NewOpenIDProviderDynamicPostBodyOidcProvider instantiates a new OpenIDProviderDynamicPostBodyOidcProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderDynamicPostBodyOidcProviderWithDefaults + +`func NewOpenIDProviderDynamicPostBodyOidcProviderWithDefaults() *OpenIDProviderDynamicPostBodyOidcProvider` + +NewOpenIDProviderDynamicPostBodyOidcProviderWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClient + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetClient() OpenIDProviderDynamicPostBodyOidcProviderClient` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetClientOk() (*OpenIDProviderDynamicPostBodyOidcProviderClient, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetClient(v OpenIDProviderDynamicPostBodyOidcProviderClient)` + +SetClient sets Client field to given value. + + +### GetIssuer + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetIssuer() string` + +GetIssuer returns the Issuer field if non-nil, zero value otherwise. + +### GetIssuerOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetIssuerOk() (*string, bool)` + +GetIssuerOk returns a tuple with the Issuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuer + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetIssuer(v string)` + +SetIssuer sets Issuer field to given value. + +### HasIssuer + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) HasIssuer() bool` + +HasIssuer returns a boolean if a field has been set. + +### GetUrls + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetUrls() OpenIDProviderManualPostBodyOidcProviderUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetUrlsOk() (*OpenIDProviderManualPostBodyOidcProviderUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetUrls(v OpenIDProviderManualPostBodyOidcProviderUrls)` + +SetUrls sets Urls field to given value. + + +### GetGroupScope + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetGroupScope() string` + +GetGroupScope returns the GroupScope field if non-nil, zero value otherwise. + +### GetGroupScopeOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetGroupScopeOk() (*string, bool)` + +GetGroupScopeOk returns a tuple with the GroupScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupScope + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetGroupScope(v string)` + +SetGroupScope sets GroupScope field to given value. + +### HasGroupScope + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) HasGroupScope() bool` + +HasGroupScope returns a boolean if a field has been set. + +### GetClaimsMapping + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetClaimsMapping() OpenIDProviderManualPostBodyOidcProviderClaimsMapping` + +GetClaimsMapping returns the ClaimsMapping field if non-nil, zero value otherwise. + +### GetClaimsMappingOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetClaimsMappingOk() (*OpenIDProviderManualPostBodyOidcProviderClaimsMapping, bool)` + +GetClaimsMappingOk returns a tuple with the ClaimsMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsMapping + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetClaimsMapping(v OpenIDProviderManualPostBodyOidcProviderClaimsMapping)` + +SetClaimsMapping sets ClaimsMapping field to given value. + +### HasClaimsMapping + +`func (o *OpenIDProviderDynamicPostBodyOidcProvider) HasClaimsMapping() bool` + +HasClaimsMapping returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClient.md b/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClient.md new file mode 100644 index 0000000..7050639 --- /dev/null +++ b/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClient.md @@ -0,0 +1,103 @@ +# OpenIDProviderDynamicPostBodyOidcProviderClient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Urls** | [**OpenIDProviderDynamicPostBodyOidcProviderClientUrls**](OpenIDProviderDynamicPostBodyOidcProviderClientUrls.md) | | +**Registration** | Pointer to [**OpenIDProviderDynamicPostBodyOidcProviderClientRegistration**](OpenIDProviderDynamicPostBodyOidcProviderClientRegistration.md) | | [optional] +**Metadata** | Pointer to [**OpenIDProviderDynamicPostBodyOidcProviderClientMetadata**](OpenIDProviderDynamicPostBodyOidcProviderClientMetadata.md) | | [optional] + +## Methods + +### NewOpenIDProviderDynamicPostBodyOidcProviderClient + +`func NewOpenIDProviderDynamicPostBodyOidcProviderClient(urls OpenIDProviderDynamicPostBodyOidcProviderClientUrls, ) *OpenIDProviderDynamicPostBodyOidcProviderClient` + +NewOpenIDProviderDynamicPostBodyOidcProviderClient instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderDynamicPostBodyOidcProviderClientWithDefaults + +`func NewOpenIDProviderDynamicPostBodyOidcProviderClientWithDefaults() *OpenIDProviderDynamicPostBodyOidcProviderClient` + +NewOpenIDProviderDynamicPostBodyOidcProviderClientWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrls + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetUrls() OpenIDProviderDynamicPostBodyOidcProviderClientUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetUrlsOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) SetUrls(v OpenIDProviderDynamicPostBodyOidcProviderClientUrls)` + +SetUrls sets Urls field to given value. + + +### GetRegistration + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetRegistration() OpenIDProviderDynamicPostBodyOidcProviderClientRegistration` + +GetRegistration returns the Registration field if non-nil, zero value otherwise. + +### GetRegistrationOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetRegistrationOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientRegistration, bool)` + +GetRegistrationOk returns a tuple with the Registration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistration + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) SetRegistration(v OpenIDProviderDynamicPostBodyOidcProviderClientRegistration)` + +SetRegistration sets Registration field to given value. + +### HasRegistration + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) HasRegistration() bool` + +HasRegistration returns a boolean if a field has been set. + +### GetMetadata + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetMetadata() OpenIDProviderDynamicPostBodyOidcProviderClientMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetMetadataOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) SetMetadata(v OpenIDProviderDynamicPostBodyOidcProviderClientMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientMetadata.md b/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientMetadata.md new file mode 100644 index 0000000..190216d --- /dev/null +++ b/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientMetadata.md @@ -0,0 +1,56 @@ +# OpenIDProviderDynamicPostBodyOidcProviderClientMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadata + +`func NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadata() *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata` + +NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadata instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadataWithDefaults + +`func NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadataWithDefaults() *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata` + +NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadataWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientRegistration.md b/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientRegistration.md new file mode 100644 index 0000000..4325815 --- /dev/null +++ b/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientRegistration.md @@ -0,0 +1,51 @@ +# OpenIDProviderDynamicPostBodyOidcProviderClientRegistration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Authorization** | **string** | | + +## Methods + +### NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistration + +`func NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistration(authorization string, ) *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration` + +NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistration instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientRegistration object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistrationWithDefaults + +`func NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistrationWithDefaults() *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration` + +NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistrationWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientRegistration object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthorization + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) GetAuthorization() string` + +GetAuthorization returns the Authorization field if non-nil, zero value otherwise. + +### GetAuthorizationOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) GetAuthorizationOk() (*string, bool)` + +GetAuthorizationOk returns a tuple with the Authorization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorization + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) SetAuthorization(v string)` + +SetAuthorization sets Authorization field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientUrls.md b/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientUrls.md new file mode 100644 index 0000000..d468f6c --- /dev/null +++ b/idp/docs/OpenIDProviderDynamicPostBodyOidcProviderClientUrls.md @@ -0,0 +1,51 @@ +# OpenIDProviderDynamicPostBodyOidcProviderClientUrls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Register** | **string** | | + +## Methods + +### NewOpenIDProviderDynamicPostBodyOidcProviderClientUrls + +`func NewOpenIDProviderDynamicPostBodyOidcProviderClientUrls(register string, ) *OpenIDProviderDynamicPostBodyOidcProviderClientUrls` + +NewOpenIDProviderDynamicPostBodyOidcProviderClientUrls instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientUrls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderDynamicPostBodyOidcProviderClientUrlsWithDefaults + +`func NewOpenIDProviderDynamicPostBodyOidcProviderClientUrlsWithDefaults() *OpenIDProviderDynamicPostBodyOidcProviderClientUrls` + +NewOpenIDProviderDynamicPostBodyOidcProviderClientUrlsWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientUrls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRegister + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientUrls) GetRegister() string` + +GetRegister returns the Register field if non-nil, zero value otherwise. + +### GetRegisterOk + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientUrls) GetRegisterOk() (*string, bool)` + +GetRegisterOk returns a tuple with the Register field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegister + +`func (o *OpenIDProviderDynamicPostBodyOidcProviderClientUrls) SetRegister(v string)` + +SetRegister sets Register field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderGet.md b/idp/docs/OpenIDProviderGet.md new file mode 100644 index 0000000..ea2f0b4 --- /dev/null +++ b/idp/docs/OpenIDProviderGet.md @@ -0,0 +1,203 @@ +# OpenIDProviderGet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OidcProvider** | [**OpenIDProviderGetOidcProvider**](OpenIDProviderGetOidcProvider.md) | | +**Name** | **string** | | +**OrgId** | **string** | | +**ServiceProvider** | [**OpenIDProviderGetServiceProvider**](OpenIDProviderGetServiceProvider.md) | | +**LoginDisabled** | Pointer to **bool** | | [optional] +**AllowUntrustedCertificates** | **bool** | | +**Type** | [**OpenIDProviderManualPostBodyType**](OpenIDProviderManualPostBodyType.md) | | +**ProviderId** | **string** | | + +## Methods + +### NewOpenIDProviderGet + +`func NewOpenIDProviderGet(oidcProvider OpenIDProviderGetOidcProvider, name string, orgId string, serviceProvider OpenIDProviderGetServiceProvider, allowUntrustedCertificates bool, type_ OpenIDProviderManualPostBodyType, providerId string, ) *OpenIDProviderGet` + +NewOpenIDProviderGet instantiates a new OpenIDProviderGet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderGetWithDefaults + +`func NewOpenIDProviderGetWithDefaults() *OpenIDProviderGet` + +NewOpenIDProviderGetWithDefaults instantiates a new OpenIDProviderGet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOidcProvider + +`func (o *OpenIDProviderGet) GetOidcProvider() OpenIDProviderGetOidcProvider` + +GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. + +### GetOidcProviderOk + +`func (o *OpenIDProviderGet) GetOidcProviderOk() (*OpenIDProviderGetOidcProvider, bool)` + +GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcProvider + +`func (o *OpenIDProviderGet) SetOidcProvider(v OpenIDProviderGetOidcProvider)` + +SetOidcProvider sets OidcProvider field to given value. + + +### GetName + +`func (o *OpenIDProviderGet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OpenIDProviderGet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OpenIDProviderGet) SetName(v string)` + +SetName sets Name field to given value. + + +### GetOrgId + +`func (o *OpenIDProviderGet) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *OpenIDProviderGet) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *OpenIDProviderGet) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + + +### GetServiceProvider + +`func (o *OpenIDProviderGet) GetServiceProvider() OpenIDProviderGetServiceProvider` + +GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. + +### GetServiceProviderOk + +`func (o *OpenIDProviderGet) GetServiceProviderOk() (*OpenIDProviderGetServiceProvider, bool)` + +GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceProvider + +`func (o *OpenIDProviderGet) SetServiceProvider(v OpenIDProviderGetServiceProvider)` + +SetServiceProvider sets ServiceProvider field to given value. + + +### GetLoginDisabled + +`func (o *OpenIDProviderGet) GetLoginDisabled() bool` + +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. + +### GetLoginDisabledOk + +`func (o *OpenIDProviderGet) GetLoginDisabledOk() (*bool, bool)` + +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginDisabled + +`func (o *OpenIDProviderGet) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *OpenIDProviderGet) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + +### GetAllowUntrustedCertificates + +`func (o *OpenIDProviderGet) GetAllowUntrustedCertificates() bool` + +GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. + +### GetAllowUntrustedCertificatesOk + +`func (o *OpenIDProviderGet) GetAllowUntrustedCertificatesOk() (*bool, bool)` + +GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUntrustedCertificates + +`func (o *OpenIDProviderGet) SetAllowUntrustedCertificates(v bool)` + +SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. + + +### GetType + +`func (o *OpenIDProviderGet) GetType() OpenIDProviderManualPostBodyType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OpenIDProviderGet) GetTypeOk() (*OpenIDProviderManualPostBodyType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OpenIDProviderGet) SetType(v OpenIDProviderManualPostBodyType)` + +SetType sets Type field to given value. + + +### GetProviderId + +`func (o *OpenIDProviderGet) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *OpenIDProviderGet) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *OpenIDProviderGet) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderGetOidcProvider.md b/idp/docs/OpenIDProviderGetOidcProvider.md new file mode 100644 index 0000000..c733d98 --- /dev/null +++ b/idp/docs/OpenIDProviderGetOidcProvider.md @@ -0,0 +1,145 @@ +# OpenIDProviderGetOidcProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Client** | [**OpenIDProviderGetOidcProviderClient**](OpenIDProviderGetOidcProviderClient.md) | | +**Issuer** | **string** | | +**Urls** | [**OpenIDProviderGetOidcProviderUrls**](OpenIDProviderGetOidcProviderUrls.md) | | +**GroupScope** | Pointer to **string** | | [optional] +**ClaimsMapping** | Pointer to [**OpenIDProviderManualPostBodyOidcProviderClaimsMapping**](OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md) | | [optional] + +## Methods + +### NewOpenIDProviderGetOidcProvider + +`func NewOpenIDProviderGetOidcProvider(client OpenIDProviderGetOidcProviderClient, issuer string, urls OpenIDProviderGetOidcProviderUrls, ) *OpenIDProviderGetOidcProvider` + +NewOpenIDProviderGetOidcProvider instantiates a new OpenIDProviderGetOidcProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderGetOidcProviderWithDefaults + +`func NewOpenIDProviderGetOidcProviderWithDefaults() *OpenIDProviderGetOidcProvider` + +NewOpenIDProviderGetOidcProviderWithDefaults instantiates a new OpenIDProviderGetOidcProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClient + +`func (o *OpenIDProviderGetOidcProvider) GetClient() OpenIDProviderGetOidcProviderClient` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *OpenIDProviderGetOidcProvider) GetClientOk() (*OpenIDProviderGetOidcProviderClient, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *OpenIDProviderGetOidcProvider) SetClient(v OpenIDProviderGetOidcProviderClient)` + +SetClient sets Client field to given value. + + +### GetIssuer + +`func (o *OpenIDProviderGetOidcProvider) GetIssuer() string` + +GetIssuer returns the Issuer field if non-nil, zero value otherwise. + +### GetIssuerOk + +`func (o *OpenIDProviderGetOidcProvider) GetIssuerOk() (*string, bool)` + +GetIssuerOk returns a tuple with the Issuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuer + +`func (o *OpenIDProviderGetOidcProvider) SetIssuer(v string)` + +SetIssuer sets Issuer field to given value. + + +### GetUrls + +`func (o *OpenIDProviderGetOidcProvider) GetUrls() OpenIDProviderGetOidcProviderUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *OpenIDProviderGetOidcProvider) GetUrlsOk() (*OpenIDProviderGetOidcProviderUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *OpenIDProviderGetOidcProvider) SetUrls(v OpenIDProviderGetOidcProviderUrls)` + +SetUrls sets Urls field to given value. + + +### GetGroupScope + +`func (o *OpenIDProviderGetOidcProvider) GetGroupScope() string` + +GetGroupScope returns the GroupScope field if non-nil, zero value otherwise. + +### GetGroupScopeOk + +`func (o *OpenIDProviderGetOidcProvider) GetGroupScopeOk() (*string, bool)` + +GetGroupScopeOk returns a tuple with the GroupScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupScope + +`func (o *OpenIDProviderGetOidcProvider) SetGroupScope(v string)` + +SetGroupScope sets GroupScope field to given value. + +### HasGroupScope + +`func (o *OpenIDProviderGetOidcProvider) HasGroupScope() bool` + +HasGroupScope returns a boolean if a field has been set. + +### GetClaimsMapping + +`func (o *OpenIDProviderGetOidcProvider) GetClaimsMapping() OpenIDProviderManualPostBodyOidcProviderClaimsMapping` + +GetClaimsMapping returns the ClaimsMapping field if non-nil, zero value otherwise. + +### GetClaimsMappingOk + +`func (o *OpenIDProviderGetOidcProvider) GetClaimsMappingOk() (*OpenIDProviderManualPostBodyOidcProviderClaimsMapping, bool)` + +GetClaimsMappingOk returns a tuple with the ClaimsMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsMapping + +`func (o *OpenIDProviderGetOidcProvider) SetClaimsMapping(v OpenIDProviderManualPostBodyOidcProviderClaimsMapping)` + +SetClaimsMapping sets ClaimsMapping field to given value. + +### HasClaimsMapping + +`func (o *OpenIDProviderGetOidcProvider) HasClaimsMapping() bool` + +HasClaimsMapping returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderGetOidcProviderClient.md b/idp/docs/OpenIDProviderGetOidcProviderClient.md new file mode 100644 index 0000000..517a209 --- /dev/null +++ b/idp/docs/OpenIDProviderGetOidcProviderClient.md @@ -0,0 +1,155 @@ +# OpenIDProviderGetOidcProviderClient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**OpenIDProviderGetOidcProviderClientCredentials**](OpenIDProviderGetOidcProviderClientCredentials.md) | | +**Urls** | Pointer to [**OpenIDProviderDynamicPostBodyOidcProviderClientUrls**](OpenIDProviderDynamicPostBodyOidcProviderClientUrls.md) | | [optional] +**Registration** | Pointer to [**OpenIDProviderPatchOidcProviderClientRegistration**](OpenIDProviderPatchOidcProviderClientRegistration.md) | | [optional] +**Metadata** | Pointer to [**OpenIDProviderDynamicPostBodyOidcProviderClientMetadata**](OpenIDProviderDynamicPostBodyOidcProviderClientMetadata.md) | | [optional] +**TokenEndpointAuthMethodsSupported** | Pointer to **[]string** | | [optional] + +## Methods + +### NewOpenIDProviderGetOidcProviderClient + +`func NewOpenIDProviderGetOidcProviderClient(credentials OpenIDProviderGetOidcProviderClientCredentials, ) *OpenIDProviderGetOidcProviderClient` + +NewOpenIDProviderGetOidcProviderClient instantiates a new OpenIDProviderGetOidcProviderClient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderGetOidcProviderClientWithDefaults + +`func NewOpenIDProviderGetOidcProviderClientWithDefaults() *OpenIDProviderGetOidcProviderClient` + +NewOpenIDProviderGetOidcProviderClientWithDefaults instantiates a new OpenIDProviderGetOidcProviderClient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCredentials + +`func (o *OpenIDProviderGetOidcProviderClient) GetCredentials() OpenIDProviderGetOidcProviderClientCredentials` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *OpenIDProviderGetOidcProviderClient) GetCredentialsOk() (*OpenIDProviderGetOidcProviderClientCredentials, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *OpenIDProviderGetOidcProviderClient) SetCredentials(v OpenIDProviderGetOidcProviderClientCredentials)` + +SetCredentials sets Credentials field to given value. + + +### GetUrls + +`func (o *OpenIDProviderGetOidcProviderClient) GetUrls() OpenIDProviderDynamicPostBodyOidcProviderClientUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *OpenIDProviderGetOidcProviderClient) GetUrlsOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *OpenIDProviderGetOidcProviderClient) SetUrls(v OpenIDProviderDynamicPostBodyOidcProviderClientUrls)` + +SetUrls sets Urls field to given value. + +### HasUrls + +`func (o *OpenIDProviderGetOidcProviderClient) HasUrls() bool` + +HasUrls returns a boolean if a field has been set. + +### GetRegistration + +`func (o *OpenIDProviderGetOidcProviderClient) GetRegistration() OpenIDProviderPatchOidcProviderClientRegistration` + +GetRegistration returns the Registration field if non-nil, zero value otherwise. + +### GetRegistrationOk + +`func (o *OpenIDProviderGetOidcProviderClient) GetRegistrationOk() (*OpenIDProviderPatchOidcProviderClientRegistration, bool)` + +GetRegistrationOk returns a tuple with the Registration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistration + +`func (o *OpenIDProviderGetOidcProviderClient) SetRegistration(v OpenIDProviderPatchOidcProviderClientRegistration)` + +SetRegistration sets Registration field to given value. + +### HasRegistration + +`func (o *OpenIDProviderGetOidcProviderClient) HasRegistration() bool` + +HasRegistration returns a boolean if a field has been set. + +### GetMetadata + +`func (o *OpenIDProviderGetOidcProviderClient) GetMetadata() OpenIDProviderDynamicPostBodyOidcProviderClientMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *OpenIDProviderGetOidcProviderClient) GetMetadataOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *OpenIDProviderGetOidcProviderClient) SetMetadata(v OpenIDProviderDynamicPostBodyOidcProviderClientMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *OpenIDProviderGetOidcProviderClient) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetTokenEndpointAuthMethodsSupported + +`func (o *OpenIDProviderGetOidcProviderClient) GetTokenEndpointAuthMethodsSupported() []string` + +GetTokenEndpointAuthMethodsSupported returns the TokenEndpointAuthMethodsSupported field if non-nil, zero value otherwise. + +### GetTokenEndpointAuthMethodsSupportedOk + +`func (o *OpenIDProviderGetOidcProviderClient) GetTokenEndpointAuthMethodsSupportedOk() (*[]string, bool)` + +GetTokenEndpointAuthMethodsSupportedOk returns a tuple with the TokenEndpointAuthMethodsSupported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenEndpointAuthMethodsSupported + +`func (o *OpenIDProviderGetOidcProviderClient) SetTokenEndpointAuthMethodsSupported(v []string)` + +SetTokenEndpointAuthMethodsSupported sets TokenEndpointAuthMethodsSupported field to given value. + +### HasTokenEndpointAuthMethodsSupported + +`func (o *OpenIDProviderGetOidcProviderClient) HasTokenEndpointAuthMethodsSupported() bool` + +HasTokenEndpointAuthMethodsSupported returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderGetOidcProviderClientCredentials.md b/idp/docs/OpenIDProviderGetOidcProviderClientCredentials.md new file mode 100644 index 0000000..3ca59cd --- /dev/null +++ b/idp/docs/OpenIDProviderGetOidcProviderClientCredentials.md @@ -0,0 +1,77 @@ +# OpenIDProviderGetOidcProviderClientCredentials + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Secret** | Pointer to **string** | | [optional] + +## Methods + +### NewOpenIDProviderGetOidcProviderClientCredentials + +`func NewOpenIDProviderGetOidcProviderClientCredentials(id string, ) *OpenIDProviderGetOidcProviderClientCredentials` + +NewOpenIDProviderGetOidcProviderClientCredentials instantiates a new OpenIDProviderGetOidcProviderClientCredentials object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderGetOidcProviderClientCredentialsWithDefaults + +`func NewOpenIDProviderGetOidcProviderClientCredentialsWithDefaults() *OpenIDProviderGetOidcProviderClientCredentials` + +NewOpenIDProviderGetOidcProviderClientCredentialsWithDefaults instantiates a new OpenIDProviderGetOidcProviderClientCredentials object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *OpenIDProviderGetOidcProviderClientCredentials) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OpenIDProviderGetOidcProviderClientCredentials) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OpenIDProviderGetOidcProviderClientCredentials) SetId(v string)` + +SetId sets Id field to given value. + + +### GetSecret + +`func (o *OpenIDProviderGetOidcProviderClientCredentials) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *OpenIDProviderGetOidcProviderClientCredentials) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *OpenIDProviderGetOidcProviderClientCredentials) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *OpenIDProviderGetOidcProviderClientCredentials) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderGetOidcProviderUrls.md b/idp/docs/OpenIDProviderGetOidcProviderUrls.md new file mode 100644 index 0000000..66e4abf --- /dev/null +++ b/idp/docs/OpenIDProviderGetOidcProviderUrls.md @@ -0,0 +1,114 @@ +# OpenIDProviderGetOidcProviderUrls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Authorize** | **string** | | +**Redirect** | **string** | | +**Token** | **string** | | +**Userinfo** | **string** | | + +## Methods + +### NewOpenIDProviderGetOidcProviderUrls + +`func NewOpenIDProviderGetOidcProviderUrls(authorize string, redirect string, token string, userinfo string, ) *OpenIDProviderGetOidcProviderUrls` + +NewOpenIDProviderGetOidcProviderUrls instantiates a new OpenIDProviderGetOidcProviderUrls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderGetOidcProviderUrlsWithDefaults + +`func NewOpenIDProviderGetOidcProviderUrlsWithDefaults() *OpenIDProviderGetOidcProviderUrls` + +NewOpenIDProviderGetOidcProviderUrlsWithDefaults instantiates a new OpenIDProviderGetOidcProviderUrls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthorize + +`func (o *OpenIDProviderGetOidcProviderUrls) GetAuthorize() string` + +GetAuthorize returns the Authorize field if non-nil, zero value otherwise. + +### GetAuthorizeOk + +`func (o *OpenIDProviderGetOidcProviderUrls) GetAuthorizeOk() (*string, bool)` + +GetAuthorizeOk returns a tuple with the Authorize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorize + +`func (o *OpenIDProviderGetOidcProviderUrls) SetAuthorize(v string)` + +SetAuthorize sets Authorize field to given value. + + +### GetRedirect + +`func (o *OpenIDProviderGetOidcProviderUrls) GetRedirect() string` + +GetRedirect returns the Redirect field if non-nil, zero value otherwise. + +### GetRedirectOk + +`func (o *OpenIDProviderGetOidcProviderUrls) GetRedirectOk() (*string, bool)` + +GetRedirectOk returns a tuple with the Redirect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedirect + +`func (o *OpenIDProviderGetOidcProviderUrls) SetRedirect(v string)` + +SetRedirect sets Redirect field to given value. + + +### GetToken + +`func (o *OpenIDProviderGetOidcProviderUrls) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *OpenIDProviderGetOidcProviderUrls) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *OpenIDProviderGetOidcProviderUrls) SetToken(v string)` + +SetToken sets Token field to given value. + + +### GetUserinfo + +`func (o *OpenIDProviderGetOidcProviderUrls) GetUserinfo() string` + +GetUserinfo returns the Userinfo field if non-nil, zero value otherwise. + +### GetUserinfoOk + +`func (o *OpenIDProviderGetOidcProviderUrls) GetUserinfoOk() (*string, bool)` + +GetUserinfoOk returns a tuple with the Userinfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserinfo + +`func (o *OpenIDProviderGetOidcProviderUrls) SetUserinfo(v string)` + +SetUserinfo sets Userinfo field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderGetServiceProvider.md b/idp/docs/OpenIDProviderGetServiceProvider.md new file mode 100644 index 0000000..2162ca9 --- /dev/null +++ b/idp/docs/OpenIDProviderGetServiceProvider.md @@ -0,0 +1,51 @@ +# OpenIDProviderGetServiceProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Urls** | [**OpenIDProviderGetServiceProviderUrls**](OpenIDProviderGetServiceProviderUrls.md) | | + +## Methods + +### NewOpenIDProviderGetServiceProvider + +`func NewOpenIDProviderGetServiceProvider(urls OpenIDProviderGetServiceProviderUrls, ) *OpenIDProviderGetServiceProvider` + +NewOpenIDProviderGetServiceProvider instantiates a new OpenIDProviderGetServiceProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderGetServiceProviderWithDefaults + +`func NewOpenIDProviderGetServiceProviderWithDefaults() *OpenIDProviderGetServiceProvider` + +NewOpenIDProviderGetServiceProviderWithDefaults instantiates a new OpenIDProviderGetServiceProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrls + +`func (o *OpenIDProviderGetServiceProvider) GetUrls() OpenIDProviderGetServiceProviderUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *OpenIDProviderGetServiceProvider) GetUrlsOk() (*OpenIDProviderGetServiceProviderUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *OpenIDProviderGetServiceProvider) SetUrls(v OpenIDProviderGetServiceProviderUrls)` + +SetUrls sets Urls field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderGetServiceProviderUrls.md b/idp/docs/OpenIDProviderGetServiceProviderUrls.md new file mode 100644 index 0000000..d059fb9 --- /dev/null +++ b/idp/docs/OpenIDProviderGetServiceProviderUrls.md @@ -0,0 +1,51 @@ +# OpenIDProviderGetServiceProviderUrls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignOn** | **string** | | + +## Methods + +### NewOpenIDProviderGetServiceProviderUrls + +`func NewOpenIDProviderGetServiceProviderUrls(signOn string, ) *OpenIDProviderGetServiceProviderUrls` + +NewOpenIDProviderGetServiceProviderUrls instantiates a new OpenIDProviderGetServiceProviderUrls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderGetServiceProviderUrlsWithDefaults + +`func NewOpenIDProviderGetServiceProviderUrlsWithDefaults() *OpenIDProviderGetServiceProviderUrls` + +NewOpenIDProviderGetServiceProviderUrlsWithDefaults instantiates a new OpenIDProviderGetServiceProviderUrls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignOn + +`func (o *OpenIDProviderGetServiceProviderUrls) GetSignOn() string` + +GetSignOn returns the SignOn field if non-nil, zero value otherwise. + +### GetSignOnOk + +`func (o *OpenIDProviderGetServiceProviderUrls) GetSignOnOk() (*string, bool)` + +GetSignOnOk returns a tuple with the SignOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignOn + +`func (o *OpenIDProviderGetServiceProviderUrls) SetSignOn(v string)` + +SetSignOn sets SignOn field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderManualPostBody.md b/idp/docs/OpenIDProviderManualPostBody.md new file mode 100644 index 0000000..512859f --- /dev/null +++ b/idp/docs/OpenIDProviderManualPostBody.md @@ -0,0 +1,171 @@ +# OpenIDProviderManualPostBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ArcNamespace** | Pointer to **string** | | [optional] +**Type** | [**OpenIDProviderManualPostBodyType**](OpenIDProviderManualPostBodyType.md) | | +**OidcProvider** | [**OpenIDProviderManualPostBodyOidcProvider**](OpenIDProviderManualPostBodyOidcProvider.md) | | +**AllowUntrustedCertificates** | Pointer to **bool** | | [optional] +**LoginDisabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewOpenIDProviderManualPostBody + +`func NewOpenIDProviderManualPostBody(name string, type_ OpenIDProviderManualPostBodyType, oidcProvider OpenIDProviderManualPostBodyOidcProvider, ) *OpenIDProviderManualPostBody` + +NewOpenIDProviderManualPostBody instantiates a new OpenIDProviderManualPostBody object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderManualPostBodyWithDefaults + +`func NewOpenIDProviderManualPostBodyWithDefaults() *OpenIDProviderManualPostBody` + +NewOpenIDProviderManualPostBodyWithDefaults instantiates a new OpenIDProviderManualPostBody object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *OpenIDProviderManualPostBody) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OpenIDProviderManualPostBody) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OpenIDProviderManualPostBody) SetName(v string)` + +SetName sets Name field to given value. + + +### GetArcNamespace + +`func (o *OpenIDProviderManualPostBody) GetArcNamespace() string` + +GetArcNamespace returns the ArcNamespace field if non-nil, zero value otherwise. + +### GetArcNamespaceOk + +`func (o *OpenIDProviderManualPostBody) GetArcNamespaceOk() (*string, bool)` + +GetArcNamespaceOk returns a tuple with the ArcNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArcNamespace + +`func (o *OpenIDProviderManualPostBody) SetArcNamespace(v string)` + +SetArcNamespace sets ArcNamespace field to given value. + +### HasArcNamespace + +`func (o *OpenIDProviderManualPostBody) HasArcNamespace() bool` + +HasArcNamespace returns a boolean if a field has been set. + +### GetType + +`func (o *OpenIDProviderManualPostBody) GetType() OpenIDProviderManualPostBodyType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OpenIDProviderManualPostBody) GetTypeOk() (*OpenIDProviderManualPostBodyType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OpenIDProviderManualPostBody) SetType(v OpenIDProviderManualPostBodyType)` + +SetType sets Type field to given value. + + +### GetOidcProvider + +`func (o *OpenIDProviderManualPostBody) GetOidcProvider() OpenIDProviderManualPostBodyOidcProvider` + +GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. + +### GetOidcProviderOk + +`func (o *OpenIDProviderManualPostBody) GetOidcProviderOk() (*OpenIDProviderManualPostBodyOidcProvider, bool)` + +GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcProvider + +`func (o *OpenIDProviderManualPostBody) SetOidcProvider(v OpenIDProviderManualPostBodyOidcProvider)` + +SetOidcProvider sets OidcProvider field to given value. + + +### GetAllowUntrustedCertificates + +`func (o *OpenIDProviderManualPostBody) GetAllowUntrustedCertificates() bool` + +GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. + +### GetAllowUntrustedCertificatesOk + +`func (o *OpenIDProviderManualPostBody) GetAllowUntrustedCertificatesOk() (*bool, bool)` + +GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUntrustedCertificates + +`func (o *OpenIDProviderManualPostBody) SetAllowUntrustedCertificates(v bool)` + +SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. + +### HasAllowUntrustedCertificates + +`func (o *OpenIDProviderManualPostBody) HasAllowUntrustedCertificates() bool` + +HasAllowUntrustedCertificates returns a boolean if a field has been set. + +### GetLoginDisabled + +`func (o *OpenIDProviderManualPostBody) GetLoginDisabled() bool` + +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. + +### GetLoginDisabledOk + +`func (o *OpenIDProviderManualPostBody) GetLoginDisabledOk() (*bool, bool)` + +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginDisabled + +`func (o *OpenIDProviderManualPostBody) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *OpenIDProviderManualPostBody) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderManualPostBodyOidcProvider.md b/idp/docs/OpenIDProviderManualPostBodyOidcProvider.md new file mode 100644 index 0000000..8d06481 --- /dev/null +++ b/idp/docs/OpenIDProviderManualPostBodyOidcProvider.md @@ -0,0 +1,150 @@ +# OpenIDProviderManualPostBodyOidcProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Client** | [**OpenIDProviderManualPostBodyOidcProviderClient**](OpenIDProviderManualPostBodyOidcProviderClient.md) | | +**Issuer** | Pointer to **string** | | [optional] +**Urls** | [**OpenIDProviderManualPostBodyOidcProviderUrls**](OpenIDProviderManualPostBodyOidcProviderUrls.md) | | +**GroupScope** | Pointer to **string** | | [optional] +**ClaimsMapping** | Pointer to [**OpenIDProviderManualPostBodyOidcProviderClaimsMapping**](OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md) | | [optional] + +## Methods + +### NewOpenIDProviderManualPostBodyOidcProvider + +`func NewOpenIDProviderManualPostBodyOidcProvider(client OpenIDProviderManualPostBodyOidcProviderClient, urls OpenIDProviderManualPostBodyOidcProviderUrls, ) *OpenIDProviderManualPostBodyOidcProvider` + +NewOpenIDProviderManualPostBodyOidcProvider instantiates a new OpenIDProviderManualPostBodyOidcProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderManualPostBodyOidcProviderWithDefaults + +`func NewOpenIDProviderManualPostBodyOidcProviderWithDefaults() *OpenIDProviderManualPostBodyOidcProvider` + +NewOpenIDProviderManualPostBodyOidcProviderWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClient + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetClient() OpenIDProviderManualPostBodyOidcProviderClient` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetClientOk() (*OpenIDProviderManualPostBodyOidcProviderClient, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *OpenIDProviderManualPostBodyOidcProvider) SetClient(v OpenIDProviderManualPostBodyOidcProviderClient)` + +SetClient sets Client field to given value. + + +### GetIssuer + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetIssuer() string` + +GetIssuer returns the Issuer field if non-nil, zero value otherwise. + +### GetIssuerOk + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetIssuerOk() (*string, bool)` + +GetIssuerOk returns a tuple with the Issuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuer + +`func (o *OpenIDProviderManualPostBodyOidcProvider) SetIssuer(v string)` + +SetIssuer sets Issuer field to given value. + +### HasIssuer + +`func (o *OpenIDProviderManualPostBodyOidcProvider) HasIssuer() bool` + +HasIssuer returns a boolean if a field has been set. + +### GetUrls + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetUrls() OpenIDProviderManualPostBodyOidcProviderUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetUrlsOk() (*OpenIDProviderManualPostBodyOidcProviderUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *OpenIDProviderManualPostBodyOidcProvider) SetUrls(v OpenIDProviderManualPostBodyOidcProviderUrls)` + +SetUrls sets Urls field to given value. + + +### GetGroupScope + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetGroupScope() string` + +GetGroupScope returns the GroupScope field if non-nil, zero value otherwise. + +### GetGroupScopeOk + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetGroupScopeOk() (*string, bool)` + +GetGroupScopeOk returns a tuple with the GroupScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupScope + +`func (o *OpenIDProviderManualPostBodyOidcProvider) SetGroupScope(v string)` + +SetGroupScope sets GroupScope field to given value. + +### HasGroupScope + +`func (o *OpenIDProviderManualPostBodyOidcProvider) HasGroupScope() bool` + +HasGroupScope returns a boolean if a field has been set. + +### GetClaimsMapping + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetClaimsMapping() OpenIDProviderManualPostBodyOidcProviderClaimsMapping` + +GetClaimsMapping returns the ClaimsMapping field if non-nil, zero value otherwise. + +### GetClaimsMappingOk + +`func (o *OpenIDProviderManualPostBodyOidcProvider) GetClaimsMappingOk() (*OpenIDProviderManualPostBodyOidcProviderClaimsMapping, bool)` + +GetClaimsMappingOk returns a tuple with the ClaimsMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsMapping + +`func (o *OpenIDProviderManualPostBodyOidcProvider) SetClaimsMapping(v OpenIDProviderManualPostBodyOidcProviderClaimsMapping)` + +SetClaimsMapping sets ClaimsMapping field to given value. + +### HasClaimsMapping + +`func (o *OpenIDProviderManualPostBodyOidcProvider) HasClaimsMapping() bool` + +HasClaimsMapping returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md b/idp/docs/OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md new file mode 100644 index 0000000..420c876 --- /dev/null +++ b/idp/docs/OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md @@ -0,0 +1,56 @@ +# OpenIDProviderManualPostBodyOidcProviderClaimsMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupExpression** | Pointer to **string** | | [optional] + +## Methods + +### NewOpenIDProviderManualPostBodyOidcProviderClaimsMapping + +`func NewOpenIDProviderManualPostBodyOidcProviderClaimsMapping() *OpenIDProviderManualPostBodyOidcProviderClaimsMapping` + +NewOpenIDProviderManualPostBodyOidcProviderClaimsMapping instantiates a new OpenIDProviderManualPostBodyOidcProviderClaimsMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderManualPostBodyOidcProviderClaimsMappingWithDefaults + +`func NewOpenIDProviderManualPostBodyOidcProviderClaimsMappingWithDefaults() *OpenIDProviderManualPostBodyOidcProviderClaimsMapping` + +NewOpenIDProviderManualPostBodyOidcProviderClaimsMappingWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProviderClaimsMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupExpression + +`func (o *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) GetGroupExpression() string` + +GetGroupExpression returns the GroupExpression field if non-nil, zero value otherwise. + +### GetGroupExpressionOk + +`func (o *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) GetGroupExpressionOk() (*string, bool)` + +GetGroupExpressionOk returns a tuple with the GroupExpression field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupExpression + +`func (o *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) SetGroupExpression(v string)` + +SetGroupExpression sets GroupExpression field to given value. + +### HasGroupExpression + +`func (o *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) HasGroupExpression() bool` + +HasGroupExpression returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderManualPostBodyOidcProviderClient.md b/idp/docs/OpenIDProviderManualPostBodyOidcProviderClient.md new file mode 100644 index 0000000..69d354f --- /dev/null +++ b/idp/docs/OpenIDProviderManualPostBodyOidcProviderClient.md @@ -0,0 +1,51 @@ +# OpenIDProviderManualPostBodyOidcProviderClient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**OpenIDProviderManualPostBodyOidcProviderClientCredentials**](OpenIDProviderManualPostBodyOidcProviderClientCredentials.md) | | + +## Methods + +### NewOpenIDProviderManualPostBodyOidcProviderClient + +`func NewOpenIDProviderManualPostBodyOidcProviderClient(credentials OpenIDProviderManualPostBodyOidcProviderClientCredentials, ) *OpenIDProviderManualPostBodyOidcProviderClient` + +NewOpenIDProviderManualPostBodyOidcProviderClient instantiates a new OpenIDProviderManualPostBodyOidcProviderClient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderManualPostBodyOidcProviderClientWithDefaults + +`func NewOpenIDProviderManualPostBodyOidcProviderClientWithDefaults() *OpenIDProviderManualPostBodyOidcProviderClient` + +NewOpenIDProviderManualPostBodyOidcProviderClientWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProviderClient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCredentials + +`func (o *OpenIDProviderManualPostBodyOidcProviderClient) GetCredentials() OpenIDProviderManualPostBodyOidcProviderClientCredentials` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *OpenIDProviderManualPostBodyOidcProviderClient) GetCredentialsOk() (*OpenIDProviderManualPostBodyOidcProviderClientCredentials, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *OpenIDProviderManualPostBodyOidcProviderClient) SetCredentials(v OpenIDProviderManualPostBodyOidcProviderClientCredentials)` + +SetCredentials sets Credentials field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderManualPostBodyOidcProviderClientCredentials.md b/idp/docs/OpenIDProviderManualPostBodyOidcProviderClientCredentials.md new file mode 100644 index 0000000..0700aac --- /dev/null +++ b/idp/docs/OpenIDProviderManualPostBodyOidcProviderClientCredentials.md @@ -0,0 +1,72 @@ +# OpenIDProviderManualPostBodyOidcProviderClientCredentials + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Secret** | **string** | | + +## Methods + +### NewOpenIDProviderManualPostBodyOidcProviderClientCredentials + +`func NewOpenIDProviderManualPostBodyOidcProviderClientCredentials(id string, secret string, ) *OpenIDProviderManualPostBodyOidcProviderClientCredentials` + +NewOpenIDProviderManualPostBodyOidcProviderClientCredentials instantiates a new OpenIDProviderManualPostBodyOidcProviderClientCredentials object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderManualPostBodyOidcProviderClientCredentialsWithDefaults + +`func NewOpenIDProviderManualPostBodyOidcProviderClientCredentialsWithDefaults() *OpenIDProviderManualPostBodyOidcProviderClientCredentials` + +NewOpenIDProviderManualPostBodyOidcProviderClientCredentialsWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProviderClientCredentials object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) SetId(v string)` + +SetId sets Id field to given value. + + +### GetSecret + +`func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderManualPostBodyOidcProviderUrls.md b/idp/docs/OpenIDProviderManualPostBodyOidcProviderUrls.md new file mode 100644 index 0000000..912aff6 --- /dev/null +++ b/idp/docs/OpenIDProviderManualPostBodyOidcProviderUrls.md @@ -0,0 +1,93 @@ +# OpenIDProviderManualPostBodyOidcProviderUrls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Authorize** | **string** | | +**Token** | **string** | | +**Userinfo** | **string** | | + +## Methods + +### NewOpenIDProviderManualPostBodyOidcProviderUrls + +`func NewOpenIDProviderManualPostBodyOidcProviderUrls(authorize string, token string, userinfo string, ) *OpenIDProviderManualPostBodyOidcProviderUrls` + +NewOpenIDProviderManualPostBodyOidcProviderUrls instantiates a new OpenIDProviderManualPostBodyOidcProviderUrls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderManualPostBodyOidcProviderUrlsWithDefaults + +`func NewOpenIDProviderManualPostBodyOidcProviderUrlsWithDefaults() *OpenIDProviderManualPostBodyOidcProviderUrls` + +NewOpenIDProviderManualPostBodyOidcProviderUrlsWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProviderUrls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthorize + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetAuthorize() string` + +GetAuthorize returns the Authorize field if non-nil, zero value otherwise. + +### GetAuthorizeOk + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetAuthorizeOk() (*string, bool)` + +GetAuthorizeOk returns a tuple with the Authorize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorize + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) SetAuthorize(v string)` + +SetAuthorize sets Authorize field to given value. + + +### GetToken + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) SetToken(v string)` + +SetToken sets Token field to given value. + + +### GetUserinfo + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetUserinfo() string` + +GetUserinfo returns the Userinfo field if non-nil, zero value otherwise. + +### GetUserinfoOk + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetUserinfoOk() (*string, bool)` + +GetUserinfoOk returns a tuple with the Userinfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserinfo + +`func (o *OpenIDProviderManualPostBodyOidcProviderUrls) SetUserinfo(v string)` + +SetUserinfo sets Userinfo field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderManualPostBodyType.md b/idp/docs/OpenIDProviderManualPostBodyType.md new file mode 100644 index 0000000..68750e4 --- /dev/null +++ b/idp/docs/OpenIDProviderManualPostBodyType.md @@ -0,0 +1,77 @@ +# OpenIDProviderManualPostBodyType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Name** | **string** | | + +## Methods + +### NewOpenIDProviderManualPostBodyType + +`func NewOpenIDProviderManualPostBodyType(name string, ) *OpenIDProviderManualPostBodyType` + +NewOpenIDProviderManualPostBodyType instantiates a new OpenIDProviderManualPostBodyType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderManualPostBodyTypeWithDefaults + +`func NewOpenIDProviderManualPostBodyTypeWithDefaults() *OpenIDProviderManualPostBodyType` + +NewOpenIDProviderManualPostBodyTypeWithDefaults instantiates a new OpenIDProviderManualPostBodyType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *OpenIDProviderManualPostBodyType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *OpenIDProviderManualPostBodyType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *OpenIDProviderManualPostBodyType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *OpenIDProviderManualPostBodyType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *OpenIDProviderManualPostBodyType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OpenIDProviderManualPostBodyType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OpenIDProviderManualPostBodyType) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderPatch.md b/idp/docs/OpenIDProviderPatch.md new file mode 100644 index 0000000..9625584 --- /dev/null +++ b/idp/docs/OpenIDProviderPatch.md @@ -0,0 +1,160 @@ +# OpenIDProviderPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to [**SamlProviderPatchType**](SamlProviderPatchType.md) | | [optional] +**OidcProvider** | Pointer to [**OpenIDProviderPatchOidcProvider**](OpenIDProviderPatchOidcProvider.md) | | [optional] +**AllowUntrustedCertificates** | Pointer to **bool** | | [optional] +**LoginDisabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewOpenIDProviderPatch + +`func NewOpenIDProviderPatch() *OpenIDProviderPatch` + +NewOpenIDProviderPatch instantiates a new OpenIDProviderPatch object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderPatchWithDefaults + +`func NewOpenIDProviderPatchWithDefaults() *OpenIDProviderPatch` + +NewOpenIDProviderPatchWithDefaults instantiates a new OpenIDProviderPatch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *OpenIDProviderPatch) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OpenIDProviderPatch) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OpenIDProviderPatch) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OpenIDProviderPatch) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *OpenIDProviderPatch) GetType() SamlProviderPatchType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OpenIDProviderPatch) GetTypeOk() (*SamlProviderPatchType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OpenIDProviderPatch) SetType(v SamlProviderPatchType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *OpenIDProviderPatch) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetOidcProvider + +`func (o *OpenIDProviderPatch) GetOidcProvider() OpenIDProviderPatchOidcProvider` + +GetOidcProvider returns the OidcProvider field if non-nil, zero value otherwise. + +### GetOidcProviderOk + +`func (o *OpenIDProviderPatch) GetOidcProviderOk() (*OpenIDProviderPatchOidcProvider, bool)` + +GetOidcProviderOk returns a tuple with the OidcProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOidcProvider + +`func (o *OpenIDProviderPatch) SetOidcProvider(v OpenIDProviderPatchOidcProvider)` + +SetOidcProvider sets OidcProvider field to given value. + +### HasOidcProvider + +`func (o *OpenIDProviderPatch) HasOidcProvider() bool` + +HasOidcProvider returns a boolean if a field has been set. + +### GetAllowUntrustedCertificates + +`func (o *OpenIDProviderPatch) GetAllowUntrustedCertificates() bool` + +GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field if non-nil, zero value otherwise. + +### GetAllowUntrustedCertificatesOk + +`func (o *OpenIDProviderPatch) GetAllowUntrustedCertificatesOk() (*bool, bool)` + +GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUntrustedCertificates + +`func (o *OpenIDProviderPatch) SetAllowUntrustedCertificates(v bool)` + +SetAllowUntrustedCertificates sets AllowUntrustedCertificates field to given value. + +### HasAllowUntrustedCertificates + +`func (o *OpenIDProviderPatch) HasAllowUntrustedCertificates() bool` + +HasAllowUntrustedCertificates returns a boolean if a field has been set. + +### GetLoginDisabled + +`func (o *OpenIDProviderPatch) GetLoginDisabled() bool` + +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. + +### GetLoginDisabledOk + +`func (o *OpenIDProviderPatch) GetLoginDisabledOk() (*bool, bool)` + +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginDisabled + +`func (o *OpenIDProviderPatch) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *OpenIDProviderPatch) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderPatchOidcProvider.md b/idp/docs/OpenIDProviderPatchOidcProvider.md new file mode 100644 index 0000000..b6f9804 --- /dev/null +++ b/idp/docs/OpenIDProviderPatchOidcProvider.md @@ -0,0 +1,160 @@ +# OpenIDProviderPatchOidcProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Client** | Pointer to [**OpenIDProviderPatchOidcProviderClient**](OpenIDProviderPatchOidcProviderClient.md) | | [optional] +**Issuer** | Pointer to **string** | | [optional] +**Urls** | Pointer to [**OpenIDProviderPatchOidcProviderUrls**](OpenIDProviderPatchOidcProviderUrls.md) | | [optional] +**GroupScope** | Pointer to **string** | | [optional] +**ClaimsMapping** | Pointer to [**OpenIDProviderManualPostBodyOidcProviderClaimsMapping**](OpenIDProviderManualPostBodyOidcProviderClaimsMapping.md) | | [optional] + +## Methods + +### NewOpenIDProviderPatchOidcProvider + +`func NewOpenIDProviderPatchOidcProvider() *OpenIDProviderPatchOidcProvider` + +NewOpenIDProviderPatchOidcProvider instantiates a new OpenIDProviderPatchOidcProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderPatchOidcProviderWithDefaults + +`func NewOpenIDProviderPatchOidcProviderWithDefaults() *OpenIDProviderPatchOidcProvider` + +NewOpenIDProviderPatchOidcProviderWithDefaults instantiates a new OpenIDProviderPatchOidcProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClient + +`func (o *OpenIDProviderPatchOidcProvider) GetClient() OpenIDProviderPatchOidcProviderClient` + +GetClient returns the Client field if non-nil, zero value otherwise. + +### GetClientOk + +`func (o *OpenIDProviderPatchOidcProvider) GetClientOk() (*OpenIDProviderPatchOidcProviderClient, bool)` + +GetClientOk returns a tuple with the Client field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClient + +`func (o *OpenIDProviderPatchOidcProvider) SetClient(v OpenIDProviderPatchOidcProviderClient)` + +SetClient sets Client field to given value. + +### HasClient + +`func (o *OpenIDProviderPatchOidcProvider) HasClient() bool` + +HasClient returns a boolean if a field has been set. + +### GetIssuer + +`func (o *OpenIDProviderPatchOidcProvider) GetIssuer() string` + +GetIssuer returns the Issuer field if non-nil, zero value otherwise. + +### GetIssuerOk + +`func (o *OpenIDProviderPatchOidcProvider) GetIssuerOk() (*string, bool)` + +GetIssuerOk returns a tuple with the Issuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuer + +`func (o *OpenIDProviderPatchOidcProvider) SetIssuer(v string)` + +SetIssuer sets Issuer field to given value. + +### HasIssuer + +`func (o *OpenIDProviderPatchOidcProvider) HasIssuer() bool` + +HasIssuer returns a boolean if a field has been set. + +### GetUrls + +`func (o *OpenIDProviderPatchOidcProvider) GetUrls() OpenIDProviderPatchOidcProviderUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *OpenIDProviderPatchOidcProvider) GetUrlsOk() (*OpenIDProviderPatchOidcProviderUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *OpenIDProviderPatchOidcProvider) SetUrls(v OpenIDProviderPatchOidcProviderUrls)` + +SetUrls sets Urls field to given value. + +### HasUrls + +`func (o *OpenIDProviderPatchOidcProvider) HasUrls() bool` + +HasUrls returns a boolean if a field has been set. + +### GetGroupScope + +`func (o *OpenIDProviderPatchOidcProvider) GetGroupScope() string` + +GetGroupScope returns the GroupScope field if non-nil, zero value otherwise. + +### GetGroupScopeOk + +`func (o *OpenIDProviderPatchOidcProvider) GetGroupScopeOk() (*string, bool)` + +GetGroupScopeOk returns a tuple with the GroupScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupScope + +`func (o *OpenIDProviderPatchOidcProvider) SetGroupScope(v string)` + +SetGroupScope sets GroupScope field to given value. + +### HasGroupScope + +`func (o *OpenIDProviderPatchOidcProvider) HasGroupScope() bool` + +HasGroupScope returns a boolean if a field has been set. + +### GetClaimsMapping + +`func (o *OpenIDProviderPatchOidcProvider) GetClaimsMapping() OpenIDProviderManualPostBodyOidcProviderClaimsMapping` + +GetClaimsMapping returns the ClaimsMapping field if non-nil, zero value otherwise. + +### GetClaimsMappingOk + +`func (o *OpenIDProviderPatchOidcProvider) GetClaimsMappingOk() (*OpenIDProviderManualPostBodyOidcProviderClaimsMapping, bool)` + +GetClaimsMappingOk returns a tuple with the ClaimsMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsMapping + +`func (o *OpenIDProviderPatchOidcProvider) SetClaimsMapping(v OpenIDProviderManualPostBodyOidcProviderClaimsMapping)` + +SetClaimsMapping sets ClaimsMapping field to given value. + +### HasClaimsMapping + +`func (o *OpenIDProviderPatchOidcProvider) HasClaimsMapping() bool` + +HasClaimsMapping returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderPatchOidcProviderClient.md b/idp/docs/OpenIDProviderPatchOidcProviderClient.md new file mode 100644 index 0000000..1a5f2ae --- /dev/null +++ b/idp/docs/OpenIDProviderPatchOidcProviderClient.md @@ -0,0 +1,134 @@ +# OpenIDProviderPatchOidcProviderClient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | Pointer to [**OpenIDProviderPatchOidcProviderClientCredentials**](OpenIDProviderPatchOidcProviderClientCredentials.md) | | [optional] +**Urls** | Pointer to [**OpenIDProviderPatchOidcProviderClientUrls**](OpenIDProviderPatchOidcProviderClientUrls.md) | | [optional] +**Registration** | Pointer to [**OpenIDProviderPatchOidcProviderClientRegistration**](OpenIDProviderPatchOidcProviderClientRegistration.md) | | [optional] +**Metadata** | Pointer to [**OpenIDProviderDynamicPostBodyOidcProviderClientMetadata**](OpenIDProviderDynamicPostBodyOidcProviderClientMetadata.md) | | [optional] + +## Methods + +### NewOpenIDProviderPatchOidcProviderClient + +`func NewOpenIDProviderPatchOidcProviderClient() *OpenIDProviderPatchOidcProviderClient` + +NewOpenIDProviderPatchOidcProviderClient instantiates a new OpenIDProviderPatchOidcProviderClient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderPatchOidcProviderClientWithDefaults + +`func NewOpenIDProviderPatchOidcProviderClientWithDefaults() *OpenIDProviderPatchOidcProviderClient` + +NewOpenIDProviderPatchOidcProviderClientWithDefaults instantiates a new OpenIDProviderPatchOidcProviderClient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCredentials + +`func (o *OpenIDProviderPatchOidcProviderClient) GetCredentials() OpenIDProviderPatchOidcProviderClientCredentials` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *OpenIDProviderPatchOidcProviderClient) GetCredentialsOk() (*OpenIDProviderPatchOidcProviderClientCredentials, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *OpenIDProviderPatchOidcProviderClient) SetCredentials(v OpenIDProviderPatchOidcProviderClientCredentials)` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *OpenIDProviderPatchOidcProviderClient) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### GetUrls + +`func (o *OpenIDProviderPatchOidcProviderClient) GetUrls() OpenIDProviderPatchOidcProviderClientUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *OpenIDProviderPatchOidcProviderClient) GetUrlsOk() (*OpenIDProviderPatchOidcProviderClientUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *OpenIDProviderPatchOidcProviderClient) SetUrls(v OpenIDProviderPatchOidcProviderClientUrls)` + +SetUrls sets Urls field to given value. + +### HasUrls + +`func (o *OpenIDProviderPatchOidcProviderClient) HasUrls() bool` + +HasUrls returns a boolean if a field has been set. + +### GetRegistration + +`func (o *OpenIDProviderPatchOidcProviderClient) GetRegistration() OpenIDProviderPatchOidcProviderClientRegistration` + +GetRegistration returns the Registration field if non-nil, zero value otherwise. + +### GetRegistrationOk + +`func (o *OpenIDProviderPatchOidcProviderClient) GetRegistrationOk() (*OpenIDProviderPatchOidcProviderClientRegistration, bool)` + +GetRegistrationOk returns a tuple with the Registration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistration + +`func (o *OpenIDProviderPatchOidcProviderClient) SetRegistration(v OpenIDProviderPatchOidcProviderClientRegistration)` + +SetRegistration sets Registration field to given value. + +### HasRegistration + +`func (o *OpenIDProviderPatchOidcProviderClient) HasRegistration() bool` + +HasRegistration returns a boolean if a field has been set. + +### GetMetadata + +`func (o *OpenIDProviderPatchOidcProviderClient) GetMetadata() OpenIDProviderDynamicPostBodyOidcProviderClientMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *OpenIDProviderPatchOidcProviderClient) GetMetadataOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *OpenIDProviderPatchOidcProviderClient) SetMetadata(v OpenIDProviderDynamicPostBodyOidcProviderClientMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *OpenIDProviderPatchOidcProviderClient) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderPatchOidcProviderClientCredentials.md b/idp/docs/OpenIDProviderPatchOidcProviderClientCredentials.md new file mode 100644 index 0000000..83e8028 --- /dev/null +++ b/idp/docs/OpenIDProviderPatchOidcProviderClientCredentials.md @@ -0,0 +1,82 @@ +# OpenIDProviderPatchOidcProviderClientCredentials + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Secret** | Pointer to **string** | | [optional] + +## Methods + +### NewOpenIDProviderPatchOidcProviderClientCredentials + +`func NewOpenIDProviderPatchOidcProviderClientCredentials() *OpenIDProviderPatchOidcProviderClientCredentials` + +NewOpenIDProviderPatchOidcProviderClientCredentials instantiates a new OpenIDProviderPatchOidcProviderClientCredentials object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderPatchOidcProviderClientCredentialsWithDefaults + +`func NewOpenIDProviderPatchOidcProviderClientCredentialsWithDefaults() *OpenIDProviderPatchOidcProviderClientCredentials` + +NewOpenIDProviderPatchOidcProviderClientCredentialsWithDefaults instantiates a new OpenIDProviderPatchOidcProviderClientCredentials object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *OpenIDProviderPatchOidcProviderClientCredentials) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OpenIDProviderPatchOidcProviderClientCredentials) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OpenIDProviderPatchOidcProviderClientCredentials) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *OpenIDProviderPatchOidcProviderClientCredentials) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetSecret + +`func (o *OpenIDProviderPatchOidcProviderClientCredentials) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *OpenIDProviderPatchOidcProviderClientCredentials) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *OpenIDProviderPatchOidcProviderClientCredentials) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *OpenIDProviderPatchOidcProviderClientCredentials) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderPatchOidcProviderClientRegistration.md b/idp/docs/OpenIDProviderPatchOidcProviderClientRegistration.md new file mode 100644 index 0000000..e13350b --- /dev/null +++ b/idp/docs/OpenIDProviderPatchOidcProviderClientRegistration.md @@ -0,0 +1,56 @@ +# OpenIDProviderPatchOidcProviderClientRegistration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Authorization** | Pointer to **string** | | [optional] + +## Methods + +### NewOpenIDProviderPatchOidcProviderClientRegistration + +`func NewOpenIDProviderPatchOidcProviderClientRegistration() *OpenIDProviderPatchOidcProviderClientRegistration` + +NewOpenIDProviderPatchOidcProviderClientRegistration instantiates a new OpenIDProviderPatchOidcProviderClientRegistration object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderPatchOidcProviderClientRegistrationWithDefaults + +`func NewOpenIDProviderPatchOidcProviderClientRegistrationWithDefaults() *OpenIDProviderPatchOidcProviderClientRegistration` + +NewOpenIDProviderPatchOidcProviderClientRegistrationWithDefaults instantiates a new OpenIDProviderPatchOidcProviderClientRegistration object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthorization + +`func (o *OpenIDProviderPatchOidcProviderClientRegistration) GetAuthorization() string` + +GetAuthorization returns the Authorization field if non-nil, zero value otherwise. + +### GetAuthorizationOk + +`func (o *OpenIDProviderPatchOidcProviderClientRegistration) GetAuthorizationOk() (*string, bool)` + +GetAuthorizationOk returns a tuple with the Authorization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorization + +`func (o *OpenIDProviderPatchOidcProviderClientRegistration) SetAuthorization(v string)` + +SetAuthorization sets Authorization field to given value. + +### HasAuthorization + +`func (o *OpenIDProviderPatchOidcProviderClientRegistration) HasAuthorization() bool` + +HasAuthorization returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderPatchOidcProviderClientUrls.md b/idp/docs/OpenIDProviderPatchOidcProviderClientUrls.md new file mode 100644 index 0000000..3139d48 --- /dev/null +++ b/idp/docs/OpenIDProviderPatchOidcProviderClientUrls.md @@ -0,0 +1,56 @@ +# OpenIDProviderPatchOidcProviderClientUrls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Register** | Pointer to **string** | | [optional] + +## Methods + +### NewOpenIDProviderPatchOidcProviderClientUrls + +`func NewOpenIDProviderPatchOidcProviderClientUrls() *OpenIDProviderPatchOidcProviderClientUrls` + +NewOpenIDProviderPatchOidcProviderClientUrls instantiates a new OpenIDProviderPatchOidcProviderClientUrls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderPatchOidcProviderClientUrlsWithDefaults + +`func NewOpenIDProviderPatchOidcProviderClientUrlsWithDefaults() *OpenIDProviderPatchOidcProviderClientUrls` + +NewOpenIDProviderPatchOidcProviderClientUrlsWithDefaults instantiates a new OpenIDProviderPatchOidcProviderClientUrls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRegister + +`func (o *OpenIDProviderPatchOidcProviderClientUrls) GetRegister() string` + +GetRegister returns the Register field if non-nil, zero value otherwise. + +### GetRegisterOk + +`func (o *OpenIDProviderPatchOidcProviderClientUrls) GetRegisterOk() (*string, bool)` + +GetRegisterOk returns a tuple with the Register field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegister + +`func (o *OpenIDProviderPatchOidcProviderClientUrls) SetRegister(v string)` + +SetRegister sets Register field to given value. + +### HasRegister + +`func (o *OpenIDProviderPatchOidcProviderClientUrls) HasRegister() bool` + +HasRegister returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/OpenIDProviderPatchOidcProviderUrls.md b/idp/docs/OpenIDProviderPatchOidcProviderUrls.md new file mode 100644 index 0000000..c6f7994 --- /dev/null +++ b/idp/docs/OpenIDProviderPatchOidcProviderUrls.md @@ -0,0 +1,108 @@ +# OpenIDProviderPatchOidcProviderUrls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Authorize** | Pointer to **string** | | [optional] +**Token** | Pointer to **string** | | [optional] +**Userinfo** | Pointer to **string** | | [optional] + +## Methods + +### NewOpenIDProviderPatchOidcProviderUrls + +`func NewOpenIDProviderPatchOidcProviderUrls() *OpenIDProviderPatchOidcProviderUrls` + +NewOpenIDProviderPatchOidcProviderUrls instantiates a new OpenIDProviderPatchOidcProviderUrls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOpenIDProviderPatchOidcProviderUrlsWithDefaults + +`func NewOpenIDProviderPatchOidcProviderUrlsWithDefaults() *OpenIDProviderPatchOidcProviderUrls` + +NewOpenIDProviderPatchOidcProviderUrlsWithDefaults instantiates a new OpenIDProviderPatchOidcProviderUrls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthorize + +`func (o *OpenIDProviderPatchOidcProviderUrls) GetAuthorize() string` + +GetAuthorize returns the Authorize field if non-nil, zero value otherwise. + +### GetAuthorizeOk + +`func (o *OpenIDProviderPatchOidcProviderUrls) GetAuthorizeOk() (*string, bool)` + +GetAuthorizeOk returns a tuple with the Authorize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorize + +`func (o *OpenIDProviderPatchOidcProviderUrls) SetAuthorize(v string)` + +SetAuthorize sets Authorize field to given value. + +### HasAuthorize + +`func (o *OpenIDProviderPatchOidcProviderUrls) HasAuthorize() bool` + +HasAuthorize returns a boolean if a field has been set. + +### GetToken + +`func (o *OpenIDProviderPatchOidcProviderUrls) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *OpenIDProviderPatchOidcProviderUrls) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *OpenIDProviderPatchOidcProviderUrls) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *OpenIDProviderPatchOidcProviderUrls) HasToken() bool` + +HasToken returns a boolean if a field has been set. + +### GetUserinfo + +`func (o *OpenIDProviderPatchOidcProviderUrls) GetUserinfo() string` + +GetUserinfo returns the Userinfo field if non-nil, zero value otherwise. + +### GetUserinfoOk + +`func (o *OpenIDProviderPatchOidcProviderUrls) GetUserinfoOk() (*string, bool)` + +GetUserinfoOk returns a tuple with the Userinfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserinfo + +`func (o *OpenIDProviderPatchOidcProviderUrls) SetUserinfo(v string)` + +SetUserinfo sets Userinfo field to given value. + +### HasUserinfo + +`func (o *OpenIDProviderPatchOidcProviderUrls) HasUserinfo() bool` + +HasUserinfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderGet.md b/idp/docs/SamlProviderGet.md new file mode 100644 index 0000000..3a9999d --- /dev/null +++ b/idp/docs/SamlProviderGet.md @@ -0,0 +1,208 @@ +# SamlProviderGet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**OrgId** | **string** | | +**Saml** | [**SamlProviderPostBodySaml**](SamlProviderPostBodySaml.md) | | +**ServiceProvider** | [**SamlProviderPostBodyServiceProvider**](SamlProviderPostBodyServiceProvider.md) | | +**LoginDisabled** | Pointer to **bool** | | [optional] +**ArcNamespace** | Pointer to **string** | | [optional] +**ProviderId** | **string** | | +**Type** | [**SamlProviderPostBodyType**](SamlProviderPostBodyType.md) | | + +## Methods + +### NewSamlProviderGet + +`func NewSamlProviderGet(name string, orgId string, saml SamlProviderPostBodySaml, serviceProvider SamlProviderPostBodyServiceProvider, providerId string, type_ SamlProviderPostBodyType, ) *SamlProviderGet` + +NewSamlProviderGet instantiates a new SamlProviderGet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderGetWithDefaults + +`func NewSamlProviderGetWithDefaults() *SamlProviderGet` + +NewSamlProviderGetWithDefaults instantiates a new SamlProviderGet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SamlProviderGet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SamlProviderGet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SamlProviderGet) SetName(v string)` + +SetName sets Name field to given value. + + +### GetOrgId + +`func (o *SamlProviderGet) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *SamlProviderGet) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *SamlProviderGet) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + + +### GetSaml + +`func (o *SamlProviderGet) GetSaml() SamlProviderPostBodySaml` + +GetSaml returns the Saml field if non-nil, zero value otherwise. + +### GetSamlOk + +`func (o *SamlProviderGet) GetSamlOk() (*SamlProviderPostBodySaml, bool)` + +GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaml + +`func (o *SamlProviderGet) SetSaml(v SamlProviderPostBodySaml)` + +SetSaml sets Saml field to given value. + + +### GetServiceProvider + +`func (o *SamlProviderGet) GetServiceProvider() SamlProviderPostBodyServiceProvider` + +GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. + +### GetServiceProviderOk + +`func (o *SamlProviderGet) GetServiceProviderOk() (*SamlProviderPostBodyServiceProvider, bool)` + +GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceProvider + +`func (o *SamlProviderGet) SetServiceProvider(v SamlProviderPostBodyServiceProvider)` + +SetServiceProvider sets ServiceProvider field to given value. + + +### GetLoginDisabled + +`func (o *SamlProviderGet) GetLoginDisabled() bool` + +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. + +### GetLoginDisabledOk + +`func (o *SamlProviderGet) GetLoginDisabledOk() (*bool, bool)` + +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginDisabled + +`func (o *SamlProviderGet) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *SamlProviderGet) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + +### GetArcNamespace + +`func (o *SamlProviderGet) GetArcNamespace() string` + +GetArcNamespace returns the ArcNamespace field if non-nil, zero value otherwise. + +### GetArcNamespaceOk + +`func (o *SamlProviderGet) GetArcNamespaceOk() (*string, bool)` + +GetArcNamespaceOk returns a tuple with the ArcNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArcNamespace + +`func (o *SamlProviderGet) SetArcNamespace(v string)` + +SetArcNamespace sets ArcNamespace field to given value. + +### HasArcNamespace + +`func (o *SamlProviderGet) HasArcNamespace() bool` + +HasArcNamespace returns a boolean if a field has been set. + +### GetProviderId + +`func (o *SamlProviderGet) GetProviderId() string` + +GetProviderId returns the ProviderId field if non-nil, zero value otherwise. + +### GetProviderIdOk + +`func (o *SamlProviderGet) GetProviderIdOk() (*string, bool)` + +GetProviderIdOk returns a tuple with the ProviderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderId + +`func (o *SamlProviderGet) SetProviderId(v string)` + +SetProviderId sets ProviderId field to given value. + + +### GetType + +`func (o *SamlProviderGet) GetType() SamlProviderPostBodyType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SamlProviderGet) GetTypeOk() (*SamlProviderPostBodyType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *SamlProviderGet) SetType(v SamlProviderPostBodyType)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPatch.md b/idp/docs/SamlProviderPatch.md new file mode 100644 index 0000000..149e8c6 --- /dev/null +++ b/idp/docs/SamlProviderPatch.md @@ -0,0 +1,160 @@ +# SamlProviderPatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to [**SamlProviderPatchType**](SamlProviderPatchType.md) | | [optional] +**ServiceProvider** | Pointer to [**SamlProviderPatchServiceProvider**](SamlProviderPatchServiceProvider.md) | | [optional] +**Saml** | Pointer to [**SamlProviderPatchSaml**](SamlProviderPatchSaml.md) | | [optional] +**LoginDisabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewSamlProviderPatch + +`func NewSamlProviderPatch() *SamlProviderPatch` + +NewSamlProviderPatch instantiates a new SamlProviderPatch object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPatchWithDefaults + +`func NewSamlProviderPatchWithDefaults() *SamlProviderPatch` + +NewSamlProviderPatchWithDefaults instantiates a new SamlProviderPatch object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SamlProviderPatch) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SamlProviderPatch) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SamlProviderPatch) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SamlProviderPatch) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *SamlProviderPatch) GetType() SamlProviderPatchType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SamlProviderPatch) GetTypeOk() (*SamlProviderPatchType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *SamlProviderPatch) SetType(v SamlProviderPatchType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SamlProviderPatch) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetServiceProvider + +`func (o *SamlProviderPatch) GetServiceProvider() SamlProviderPatchServiceProvider` + +GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. + +### GetServiceProviderOk + +`func (o *SamlProviderPatch) GetServiceProviderOk() (*SamlProviderPatchServiceProvider, bool)` + +GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceProvider + +`func (o *SamlProviderPatch) SetServiceProvider(v SamlProviderPatchServiceProvider)` + +SetServiceProvider sets ServiceProvider field to given value. + +### HasServiceProvider + +`func (o *SamlProviderPatch) HasServiceProvider() bool` + +HasServiceProvider returns a boolean if a field has been set. + +### GetSaml + +`func (o *SamlProviderPatch) GetSaml() SamlProviderPatchSaml` + +GetSaml returns the Saml field if non-nil, zero value otherwise. + +### GetSamlOk + +`func (o *SamlProviderPatch) GetSamlOk() (*SamlProviderPatchSaml, bool)` + +GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaml + +`func (o *SamlProviderPatch) SetSaml(v SamlProviderPatchSaml)` + +SetSaml sets Saml field to given value. + +### HasSaml + +`func (o *SamlProviderPatch) HasSaml() bool` + +HasSaml returns a boolean if a field has been set. + +### GetLoginDisabled + +`func (o *SamlProviderPatch) GetLoginDisabled() bool` + +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. + +### GetLoginDisabledOk + +`func (o *SamlProviderPatch) GetLoginDisabledOk() (*bool, bool)` + +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginDisabled + +`func (o *SamlProviderPatch) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *SamlProviderPatch) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPatchSaml.md b/idp/docs/SamlProviderPatchSaml.md new file mode 100644 index 0000000..46d1641 --- /dev/null +++ b/idp/docs/SamlProviderPatchSaml.md @@ -0,0 +1,238 @@ +# SamlProviderPatchSaml + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Audience** | Pointer to **string** | | [optional] +**Issuer** | Pointer to **string** | | [optional] +**PublicKey** | Pointer to **[]string** | | [optional] +**ClaimsMapping** | Pointer to [**SamlProviderPostBodySamlClaimsMapping**](SamlProviderPostBodySamlClaimsMapping.md) | | [optional] +**IdpInitiatedSsoEnabled** | Pointer to **bool** | | [optional] +**SpInitiatedSsoEnabled** | Pointer to **bool** | | [optional] +**UseComposerAcsUrl** | Pointer to **bool** | | [optional] +**RequireEncryptedSamlAssertions** | Pointer to **bool** | | [optional] + +## Methods + +### NewSamlProviderPatchSaml + +`func NewSamlProviderPatchSaml() *SamlProviderPatchSaml` + +NewSamlProviderPatchSaml instantiates a new SamlProviderPatchSaml object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPatchSamlWithDefaults + +`func NewSamlProviderPatchSamlWithDefaults() *SamlProviderPatchSaml` + +NewSamlProviderPatchSamlWithDefaults instantiates a new SamlProviderPatchSaml object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAudience + +`func (o *SamlProviderPatchSaml) GetAudience() string` + +GetAudience returns the Audience field if non-nil, zero value otherwise. + +### GetAudienceOk + +`func (o *SamlProviderPatchSaml) GetAudienceOk() (*string, bool)` + +GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudience + +`func (o *SamlProviderPatchSaml) SetAudience(v string)` + +SetAudience sets Audience field to given value. + +### HasAudience + +`func (o *SamlProviderPatchSaml) HasAudience() bool` + +HasAudience returns a boolean if a field has been set. + +### GetIssuer + +`func (o *SamlProviderPatchSaml) GetIssuer() string` + +GetIssuer returns the Issuer field if non-nil, zero value otherwise. + +### GetIssuerOk + +`func (o *SamlProviderPatchSaml) GetIssuerOk() (*string, bool)` + +GetIssuerOk returns a tuple with the Issuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuer + +`func (o *SamlProviderPatchSaml) SetIssuer(v string)` + +SetIssuer sets Issuer field to given value. + +### HasIssuer + +`func (o *SamlProviderPatchSaml) HasIssuer() bool` + +HasIssuer returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *SamlProviderPatchSaml) GetPublicKey() []string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *SamlProviderPatchSaml) GetPublicKeyOk() (*[]string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *SamlProviderPatchSaml) SetPublicKey(v []string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *SamlProviderPatchSaml) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### GetClaimsMapping + +`func (o *SamlProviderPatchSaml) GetClaimsMapping() SamlProviderPostBodySamlClaimsMapping` + +GetClaimsMapping returns the ClaimsMapping field if non-nil, zero value otherwise. + +### GetClaimsMappingOk + +`func (o *SamlProviderPatchSaml) GetClaimsMappingOk() (*SamlProviderPostBodySamlClaimsMapping, bool)` + +GetClaimsMappingOk returns a tuple with the ClaimsMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsMapping + +`func (o *SamlProviderPatchSaml) SetClaimsMapping(v SamlProviderPostBodySamlClaimsMapping)` + +SetClaimsMapping sets ClaimsMapping field to given value. + +### HasClaimsMapping + +`func (o *SamlProviderPatchSaml) HasClaimsMapping() bool` + +HasClaimsMapping returns a boolean if a field has been set. + +### GetIdpInitiatedSsoEnabled + +`func (o *SamlProviderPatchSaml) GetIdpInitiatedSsoEnabled() bool` + +GetIdpInitiatedSsoEnabled returns the IdpInitiatedSsoEnabled field if non-nil, zero value otherwise. + +### GetIdpInitiatedSsoEnabledOk + +`func (o *SamlProviderPatchSaml) GetIdpInitiatedSsoEnabledOk() (*bool, bool)` + +GetIdpInitiatedSsoEnabledOk returns a tuple with the IdpInitiatedSsoEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdpInitiatedSsoEnabled + +`func (o *SamlProviderPatchSaml) SetIdpInitiatedSsoEnabled(v bool)` + +SetIdpInitiatedSsoEnabled sets IdpInitiatedSsoEnabled field to given value. + +### HasIdpInitiatedSsoEnabled + +`func (o *SamlProviderPatchSaml) HasIdpInitiatedSsoEnabled() bool` + +HasIdpInitiatedSsoEnabled returns a boolean if a field has been set. + +### GetSpInitiatedSsoEnabled + +`func (o *SamlProviderPatchSaml) GetSpInitiatedSsoEnabled() bool` + +GetSpInitiatedSsoEnabled returns the SpInitiatedSsoEnabled field if non-nil, zero value otherwise. + +### GetSpInitiatedSsoEnabledOk + +`func (o *SamlProviderPatchSaml) GetSpInitiatedSsoEnabledOk() (*bool, bool)` + +GetSpInitiatedSsoEnabledOk returns a tuple with the SpInitiatedSsoEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpInitiatedSsoEnabled + +`func (o *SamlProviderPatchSaml) SetSpInitiatedSsoEnabled(v bool)` + +SetSpInitiatedSsoEnabled sets SpInitiatedSsoEnabled field to given value. + +### HasSpInitiatedSsoEnabled + +`func (o *SamlProviderPatchSaml) HasSpInitiatedSsoEnabled() bool` + +HasSpInitiatedSsoEnabled returns a boolean if a field has been set. + +### GetUseComposerAcsUrl + +`func (o *SamlProviderPatchSaml) GetUseComposerAcsUrl() bool` + +GetUseComposerAcsUrl returns the UseComposerAcsUrl field if non-nil, zero value otherwise. + +### GetUseComposerAcsUrlOk + +`func (o *SamlProviderPatchSaml) GetUseComposerAcsUrlOk() (*bool, bool)` + +GetUseComposerAcsUrlOk returns a tuple with the UseComposerAcsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseComposerAcsUrl + +`func (o *SamlProviderPatchSaml) SetUseComposerAcsUrl(v bool)` + +SetUseComposerAcsUrl sets UseComposerAcsUrl field to given value. + +### HasUseComposerAcsUrl + +`func (o *SamlProviderPatchSaml) HasUseComposerAcsUrl() bool` + +HasUseComposerAcsUrl returns a boolean if a field has been set. + +### GetRequireEncryptedSamlAssertions + +`func (o *SamlProviderPatchSaml) GetRequireEncryptedSamlAssertions() bool` + +GetRequireEncryptedSamlAssertions returns the RequireEncryptedSamlAssertions field if non-nil, zero value otherwise. + +### GetRequireEncryptedSamlAssertionsOk + +`func (o *SamlProviderPatchSaml) GetRequireEncryptedSamlAssertionsOk() (*bool, bool)` + +GetRequireEncryptedSamlAssertionsOk returns a tuple with the RequireEncryptedSamlAssertions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequireEncryptedSamlAssertions + +`func (o *SamlProviderPatchSaml) SetRequireEncryptedSamlAssertions(v bool)` + +SetRequireEncryptedSamlAssertions sets RequireEncryptedSamlAssertions field to given value. + +### HasRequireEncryptedSamlAssertions + +`func (o *SamlProviderPatchSaml) HasRequireEncryptedSamlAssertions() bool` + +HasRequireEncryptedSamlAssertions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPatchServiceProvider.md b/idp/docs/SamlProviderPatchServiceProvider.md new file mode 100644 index 0000000..1170454 --- /dev/null +++ b/idp/docs/SamlProviderPatchServiceProvider.md @@ -0,0 +1,56 @@ +# SamlProviderPatchServiceProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Urls** | Pointer to [**SamlProviderPatchServiceProviderUrls**](SamlProviderPatchServiceProviderUrls.md) | | [optional] + +## Methods + +### NewSamlProviderPatchServiceProvider + +`func NewSamlProviderPatchServiceProvider() *SamlProviderPatchServiceProvider` + +NewSamlProviderPatchServiceProvider instantiates a new SamlProviderPatchServiceProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPatchServiceProviderWithDefaults + +`func NewSamlProviderPatchServiceProviderWithDefaults() *SamlProviderPatchServiceProvider` + +NewSamlProviderPatchServiceProviderWithDefaults instantiates a new SamlProviderPatchServiceProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrls + +`func (o *SamlProviderPatchServiceProvider) GetUrls() SamlProviderPatchServiceProviderUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *SamlProviderPatchServiceProvider) GetUrlsOk() (*SamlProviderPatchServiceProviderUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *SamlProviderPatchServiceProvider) SetUrls(v SamlProviderPatchServiceProviderUrls)` + +SetUrls sets Urls field to given value. + +### HasUrls + +`func (o *SamlProviderPatchServiceProvider) HasUrls() bool` + +HasUrls returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPatchServiceProviderUrls.md b/idp/docs/SamlProviderPatchServiceProviderUrls.md new file mode 100644 index 0000000..4a37151 --- /dev/null +++ b/idp/docs/SamlProviderPatchServiceProviderUrls.md @@ -0,0 +1,82 @@ +# SamlProviderPatchServiceProviderUrls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignOn** | Pointer to **string** | | [optional] +**SignOut** | Pointer to **string** | | [optional] + +## Methods + +### NewSamlProviderPatchServiceProviderUrls + +`func NewSamlProviderPatchServiceProviderUrls() *SamlProviderPatchServiceProviderUrls` + +NewSamlProviderPatchServiceProviderUrls instantiates a new SamlProviderPatchServiceProviderUrls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPatchServiceProviderUrlsWithDefaults + +`func NewSamlProviderPatchServiceProviderUrlsWithDefaults() *SamlProviderPatchServiceProviderUrls` + +NewSamlProviderPatchServiceProviderUrlsWithDefaults instantiates a new SamlProviderPatchServiceProviderUrls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignOn + +`func (o *SamlProviderPatchServiceProviderUrls) GetSignOn() string` + +GetSignOn returns the SignOn field if non-nil, zero value otherwise. + +### GetSignOnOk + +`func (o *SamlProviderPatchServiceProviderUrls) GetSignOnOk() (*string, bool)` + +GetSignOnOk returns a tuple with the SignOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignOn + +`func (o *SamlProviderPatchServiceProviderUrls) SetSignOn(v string)` + +SetSignOn sets SignOn field to given value. + +### HasSignOn + +`func (o *SamlProviderPatchServiceProviderUrls) HasSignOn() bool` + +HasSignOn returns a boolean if a field has been set. + +### GetSignOut + +`func (o *SamlProviderPatchServiceProviderUrls) GetSignOut() string` + +GetSignOut returns the SignOut field if non-nil, zero value otherwise. + +### GetSignOutOk + +`func (o *SamlProviderPatchServiceProviderUrls) GetSignOutOk() (*string, bool)` + +GetSignOutOk returns a tuple with the SignOut field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignOut + +`func (o *SamlProviderPatchServiceProviderUrls) SetSignOut(v string)` + +SetSignOut sets SignOut field to given value. + +### HasSignOut + +`func (o *SamlProviderPatchServiceProviderUrls) HasSignOut() bool` + +HasSignOut returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPatchType.md b/idp/docs/SamlProviderPatchType.md new file mode 100644 index 0000000..cbba18e --- /dev/null +++ b/idp/docs/SamlProviderPatchType.md @@ -0,0 +1,56 @@ +# SamlProviderPatchType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewSamlProviderPatchType + +`func NewSamlProviderPatchType() *SamlProviderPatchType` + +NewSamlProviderPatchType instantiates a new SamlProviderPatchType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPatchTypeWithDefaults + +`func NewSamlProviderPatchTypeWithDefaults() *SamlProviderPatchType` + +NewSamlProviderPatchTypeWithDefaults instantiates a new SamlProviderPatchType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *SamlProviderPatchType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SamlProviderPatchType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SamlProviderPatchType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SamlProviderPatchType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPostBody.md b/idp/docs/SamlProviderPostBody.md new file mode 100644 index 0000000..fcae13b --- /dev/null +++ b/idp/docs/SamlProviderPostBody.md @@ -0,0 +1,166 @@ +# SamlProviderPostBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ArcNamespace** | Pointer to **string** | | [optional] +**Name** | **string** | | +**Type** | [**SamlProviderPostBodyType**](SamlProviderPostBodyType.md) | | +**ServiceProvider** | [**SamlProviderPostBodyServiceProvider**](SamlProviderPostBodyServiceProvider.md) | | +**Saml** | [**SamlProviderPostBodySaml**](SamlProviderPostBodySaml.md) | | +**LoginDisabled** | Pointer to **bool** | | [optional] + +## Methods + +### NewSamlProviderPostBody + +`func NewSamlProviderPostBody(name string, type_ SamlProviderPostBodyType, serviceProvider SamlProviderPostBodyServiceProvider, saml SamlProviderPostBodySaml, ) *SamlProviderPostBody` + +NewSamlProviderPostBody instantiates a new SamlProviderPostBody object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPostBodyWithDefaults + +`func NewSamlProviderPostBodyWithDefaults() *SamlProviderPostBody` + +NewSamlProviderPostBodyWithDefaults instantiates a new SamlProviderPostBody object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArcNamespace + +`func (o *SamlProviderPostBody) GetArcNamespace() string` + +GetArcNamespace returns the ArcNamespace field if non-nil, zero value otherwise. + +### GetArcNamespaceOk + +`func (o *SamlProviderPostBody) GetArcNamespaceOk() (*string, bool)` + +GetArcNamespaceOk returns a tuple with the ArcNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArcNamespace + +`func (o *SamlProviderPostBody) SetArcNamespace(v string)` + +SetArcNamespace sets ArcNamespace field to given value. + +### HasArcNamespace + +`func (o *SamlProviderPostBody) HasArcNamespace() bool` + +HasArcNamespace returns a boolean if a field has been set. + +### GetName + +`func (o *SamlProviderPostBody) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SamlProviderPostBody) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SamlProviderPostBody) SetName(v string)` + +SetName sets Name field to given value. + + +### GetType + +`func (o *SamlProviderPostBody) GetType() SamlProviderPostBodyType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SamlProviderPostBody) GetTypeOk() (*SamlProviderPostBodyType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *SamlProviderPostBody) SetType(v SamlProviderPostBodyType)` + +SetType sets Type field to given value. + + +### GetServiceProvider + +`func (o *SamlProviderPostBody) GetServiceProvider() SamlProviderPostBodyServiceProvider` + +GetServiceProvider returns the ServiceProvider field if non-nil, zero value otherwise. + +### GetServiceProviderOk + +`func (o *SamlProviderPostBody) GetServiceProviderOk() (*SamlProviderPostBodyServiceProvider, bool)` + +GetServiceProviderOk returns a tuple with the ServiceProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceProvider + +`func (o *SamlProviderPostBody) SetServiceProvider(v SamlProviderPostBodyServiceProvider)` + +SetServiceProvider sets ServiceProvider field to given value. + + +### GetSaml + +`func (o *SamlProviderPostBody) GetSaml() SamlProviderPostBodySaml` + +GetSaml returns the Saml field if non-nil, zero value otherwise. + +### GetSamlOk + +`func (o *SamlProviderPostBody) GetSamlOk() (*SamlProviderPostBodySaml, bool)` + +GetSamlOk returns a tuple with the Saml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaml + +`func (o *SamlProviderPostBody) SetSaml(v SamlProviderPostBodySaml)` + +SetSaml sets Saml field to given value. + + +### GetLoginDisabled + +`func (o *SamlProviderPostBody) GetLoginDisabled() bool` + +GetLoginDisabled returns the LoginDisabled field if non-nil, zero value otherwise. + +### GetLoginDisabledOk + +`func (o *SamlProviderPostBody) GetLoginDisabledOk() (*bool, bool)` + +GetLoginDisabledOk returns a tuple with the LoginDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginDisabled + +`func (o *SamlProviderPostBody) SetLoginDisabled(v bool)` + +SetLoginDisabled sets LoginDisabled field to given value. + +### HasLoginDisabled + +`func (o *SamlProviderPostBody) HasLoginDisabled() bool` + +HasLoginDisabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPostBodySaml.md b/idp/docs/SamlProviderPostBodySaml.md new file mode 100644 index 0000000..291b3ed --- /dev/null +++ b/idp/docs/SamlProviderPostBodySaml.md @@ -0,0 +1,223 @@ +# SamlProviderPostBodySaml + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Audience** | **string** | | +**Issuer** | **string** | | +**PublicKey** | **[]string** | | +**ClaimsMapping** | Pointer to [**SamlProviderPostBodySamlClaimsMapping**](SamlProviderPostBodySamlClaimsMapping.md) | | [optional] +**IdpInitiatedSsoEnabled** | Pointer to **bool** | | [optional] +**SpInitiatedSsoEnabled** | Pointer to **bool** | | [optional] +**UseComposerAcsUrl** | Pointer to **bool** | | [optional] +**RequireEncryptedSamlAssertions** | Pointer to **bool** | | [optional] + +## Methods + +### NewSamlProviderPostBodySaml + +`func NewSamlProviderPostBodySaml(audience string, issuer string, publicKey []string, ) *SamlProviderPostBodySaml` + +NewSamlProviderPostBodySaml instantiates a new SamlProviderPostBodySaml object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPostBodySamlWithDefaults + +`func NewSamlProviderPostBodySamlWithDefaults() *SamlProviderPostBodySaml` + +NewSamlProviderPostBodySamlWithDefaults instantiates a new SamlProviderPostBodySaml object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAudience + +`func (o *SamlProviderPostBodySaml) GetAudience() string` + +GetAudience returns the Audience field if non-nil, zero value otherwise. + +### GetAudienceOk + +`func (o *SamlProviderPostBodySaml) GetAudienceOk() (*string, bool)` + +GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudience + +`func (o *SamlProviderPostBodySaml) SetAudience(v string)` + +SetAudience sets Audience field to given value. + + +### GetIssuer + +`func (o *SamlProviderPostBodySaml) GetIssuer() string` + +GetIssuer returns the Issuer field if non-nil, zero value otherwise. + +### GetIssuerOk + +`func (o *SamlProviderPostBodySaml) GetIssuerOk() (*string, bool)` + +GetIssuerOk returns a tuple with the Issuer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuer + +`func (o *SamlProviderPostBodySaml) SetIssuer(v string)` + +SetIssuer sets Issuer field to given value. + + +### GetPublicKey + +`func (o *SamlProviderPostBodySaml) GetPublicKey() []string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *SamlProviderPostBodySaml) GetPublicKeyOk() (*[]string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *SamlProviderPostBodySaml) SetPublicKey(v []string)` + +SetPublicKey sets PublicKey field to given value. + + +### GetClaimsMapping + +`func (o *SamlProviderPostBodySaml) GetClaimsMapping() SamlProviderPostBodySamlClaimsMapping` + +GetClaimsMapping returns the ClaimsMapping field if non-nil, zero value otherwise. + +### GetClaimsMappingOk + +`func (o *SamlProviderPostBodySaml) GetClaimsMappingOk() (*SamlProviderPostBodySamlClaimsMapping, bool)` + +GetClaimsMappingOk returns a tuple with the ClaimsMapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsMapping + +`func (o *SamlProviderPostBodySaml) SetClaimsMapping(v SamlProviderPostBodySamlClaimsMapping)` + +SetClaimsMapping sets ClaimsMapping field to given value. + +### HasClaimsMapping + +`func (o *SamlProviderPostBodySaml) HasClaimsMapping() bool` + +HasClaimsMapping returns a boolean if a field has been set. + +### GetIdpInitiatedSsoEnabled + +`func (o *SamlProviderPostBodySaml) GetIdpInitiatedSsoEnabled() bool` + +GetIdpInitiatedSsoEnabled returns the IdpInitiatedSsoEnabled field if non-nil, zero value otherwise. + +### GetIdpInitiatedSsoEnabledOk + +`func (o *SamlProviderPostBodySaml) GetIdpInitiatedSsoEnabledOk() (*bool, bool)` + +GetIdpInitiatedSsoEnabledOk returns a tuple with the IdpInitiatedSsoEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdpInitiatedSsoEnabled + +`func (o *SamlProviderPostBodySaml) SetIdpInitiatedSsoEnabled(v bool)` + +SetIdpInitiatedSsoEnabled sets IdpInitiatedSsoEnabled field to given value. + +### HasIdpInitiatedSsoEnabled + +`func (o *SamlProviderPostBodySaml) HasIdpInitiatedSsoEnabled() bool` + +HasIdpInitiatedSsoEnabled returns a boolean if a field has been set. + +### GetSpInitiatedSsoEnabled + +`func (o *SamlProviderPostBodySaml) GetSpInitiatedSsoEnabled() bool` + +GetSpInitiatedSsoEnabled returns the SpInitiatedSsoEnabled field if non-nil, zero value otherwise. + +### GetSpInitiatedSsoEnabledOk + +`func (o *SamlProviderPostBodySaml) GetSpInitiatedSsoEnabledOk() (*bool, bool)` + +GetSpInitiatedSsoEnabledOk returns a tuple with the SpInitiatedSsoEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpInitiatedSsoEnabled + +`func (o *SamlProviderPostBodySaml) SetSpInitiatedSsoEnabled(v bool)` + +SetSpInitiatedSsoEnabled sets SpInitiatedSsoEnabled field to given value. + +### HasSpInitiatedSsoEnabled + +`func (o *SamlProviderPostBodySaml) HasSpInitiatedSsoEnabled() bool` + +HasSpInitiatedSsoEnabled returns a boolean if a field has been set. + +### GetUseComposerAcsUrl + +`func (o *SamlProviderPostBodySaml) GetUseComposerAcsUrl() bool` + +GetUseComposerAcsUrl returns the UseComposerAcsUrl field if non-nil, zero value otherwise. + +### GetUseComposerAcsUrlOk + +`func (o *SamlProviderPostBodySaml) GetUseComposerAcsUrlOk() (*bool, bool)` + +GetUseComposerAcsUrlOk returns a tuple with the UseComposerAcsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseComposerAcsUrl + +`func (o *SamlProviderPostBodySaml) SetUseComposerAcsUrl(v bool)` + +SetUseComposerAcsUrl sets UseComposerAcsUrl field to given value. + +### HasUseComposerAcsUrl + +`func (o *SamlProviderPostBodySaml) HasUseComposerAcsUrl() bool` + +HasUseComposerAcsUrl returns a boolean if a field has been set. + +### GetRequireEncryptedSamlAssertions + +`func (o *SamlProviderPostBodySaml) GetRequireEncryptedSamlAssertions() bool` + +GetRequireEncryptedSamlAssertions returns the RequireEncryptedSamlAssertions field if non-nil, zero value otherwise. + +### GetRequireEncryptedSamlAssertionsOk + +`func (o *SamlProviderPostBodySaml) GetRequireEncryptedSamlAssertionsOk() (*bool, bool)` + +GetRequireEncryptedSamlAssertionsOk returns a tuple with the RequireEncryptedSamlAssertions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequireEncryptedSamlAssertions + +`func (o *SamlProviderPostBodySaml) SetRequireEncryptedSamlAssertions(v bool)` + +SetRequireEncryptedSamlAssertions sets RequireEncryptedSamlAssertions field to given value. + +### HasRequireEncryptedSamlAssertions + +`func (o *SamlProviderPostBodySaml) HasRequireEncryptedSamlAssertions() bool` + +HasRequireEncryptedSamlAssertions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPostBodySamlClaimsMapping.md b/idp/docs/SamlProviderPostBodySamlClaimsMapping.md new file mode 100644 index 0000000..0b78f16 --- /dev/null +++ b/idp/docs/SamlProviderPostBodySamlClaimsMapping.md @@ -0,0 +1,160 @@ +# SamlProviderPostBodySamlClaimsMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UsernameAttribute** | Pointer to **string** | | [optional] +**FirstnameAttribute** | Pointer to **string** | | [optional] +**LastnameAttribute** | Pointer to **string** | | [optional] +**EmailAttribute** | Pointer to **string** | | [optional] +**GroupAttribute** | Pointer to **string** | | [optional] + +## Methods + +### NewSamlProviderPostBodySamlClaimsMapping + +`func NewSamlProviderPostBodySamlClaimsMapping() *SamlProviderPostBodySamlClaimsMapping` + +NewSamlProviderPostBodySamlClaimsMapping instantiates a new SamlProviderPostBodySamlClaimsMapping object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPostBodySamlClaimsMappingWithDefaults + +`func NewSamlProviderPostBodySamlClaimsMappingWithDefaults() *SamlProviderPostBodySamlClaimsMapping` + +NewSamlProviderPostBodySamlClaimsMappingWithDefaults instantiates a new SamlProviderPostBodySamlClaimsMapping object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsernameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetUsernameAttribute() string` + +GetUsernameAttribute returns the UsernameAttribute field if non-nil, zero value otherwise. + +### GetUsernameAttributeOk + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetUsernameAttributeOk() (*string, bool)` + +GetUsernameAttributeOk returns a tuple with the UsernameAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsernameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) SetUsernameAttribute(v string)` + +SetUsernameAttribute sets UsernameAttribute field to given value. + +### HasUsernameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) HasUsernameAttribute() bool` + +HasUsernameAttribute returns a boolean if a field has been set. + +### GetFirstnameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetFirstnameAttribute() string` + +GetFirstnameAttribute returns the FirstnameAttribute field if non-nil, zero value otherwise. + +### GetFirstnameAttributeOk + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetFirstnameAttributeOk() (*string, bool)` + +GetFirstnameAttributeOk returns a tuple with the FirstnameAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstnameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) SetFirstnameAttribute(v string)` + +SetFirstnameAttribute sets FirstnameAttribute field to given value. + +### HasFirstnameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) HasFirstnameAttribute() bool` + +HasFirstnameAttribute returns a boolean if a field has been set. + +### GetLastnameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetLastnameAttribute() string` + +GetLastnameAttribute returns the LastnameAttribute field if non-nil, zero value otherwise. + +### GetLastnameAttributeOk + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetLastnameAttributeOk() (*string, bool)` + +GetLastnameAttributeOk returns a tuple with the LastnameAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastnameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) SetLastnameAttribute(v string)` + +SetLastnameAttribute sets LastnameAttribute field to given value. + +### HasLastnameAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) HasLastnameAttribute() bool` + +HasLastnameAttribute returns a boolean if a field has been set. + +### GetEmailAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetEmailAttribute() string` + +GetEmailAttribute returns the EmailAttribute field if non-nil, zero value otherwise. + +### GetEmailAttributeOk + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetEmailAttributeOk() (*string, bool)` + +GetEmailAttributeOk returns a tuple with the EmailAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) SetEmailAttribute(v string)` + +SetEmailAttribute sets EmailAttribute field to given value. + +### HasEmailAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) HasEmailAttribute() bool` + +HasEmailAttribute returns a boolean if a field has been set. + +### GetGroupAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetGroupAttribute() string` + +GetGroupAttribute returns the GroupAttribute field if non-nil, zero value otherwise. + +### GetGroupAttributeOk + +`func (o *SamlProviderPostBodySamlClaimsMapping) GetGroupAttributeOk() (*string, bool)` + +GetGroupAttributeOk returns a tuple with the GroupAttribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) SetGroupAttribute(v string)` + +SetGroupAttribute sets GroupAttribute field to given value. + +### HasGroupAttribute + +`func (o *SamlProviderPostBodySamlClaimsMapping) HasGroupAttribute() bool` + +HasGroupAttribute returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPostBodyServiceProvider.md b/idp/docs/SamlProviderPostBodyServiceProvider.md new file mode 100644 index 0000000..ef88297 --- /dev/null +++ b/idp/docs/SamlProviderPostBodyServiceProvider.md @@ -0,0 +1,51 @@ +# SamlProviderPostBodyServiceProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Urls** | [**SamlProviderPostBodyServiceProviderUrls**](SamlProviderPostBodyServiceProviderUrls.md) | | + +## Methods + +### NewSamlProviderPostBodyServiceProvider + +`func NewSamlProviderPostBodyServiceProvider(urls SamlProviderPostBodyServiceProviderUrls, ) *SamlProviderPostBodyServiceProvider` + +NewSamlProviderPostBodyServiceProvider instantiates a new SamlProviderPostBodyServiceProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPostBodyServiceProviderWithDefaults + +`func NewSamlProviderPostBodyServiceProviderWithDefaults() *SamlProviderPostBodyServiceProvider` + +NewSamlProviderPostBodyServiceProviderWithDefaults instantiates a new SamlProviderPostBodyServiceProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrls + +`func (o *SamlProviderPostBodyServiceProvider) GetUrls() SamlProviderPostBodyServiceProviderUrls` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *SamlProviderPostBodyServiceProvider) GetUrlsOk() (*SamlProviderPostBodyServiceProviderUrls, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *SamlProviderPostBodyServiceProvider) SetUrls(v SamlProviderPostBodyServiceProviderUrls)` + +SetUrls sets Urls field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPostBodyServiceProviderUrls.md b/idp/docs/SamlProviderPostBodyServiceProviderUrls.md new file mode 100644 index 0000000..31d55d2 --- /dev/null +++ b/idp/docs/SamlProviderPostBodyServiceProviderUrls.md @@ -0,0 +1,72 @@ +# SamlProviderPostBodyServiceProviderUrls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignOn** | **string** | | +**SignOut** | **string** | | + +## Methods + +### NewSamlProviderPostBodyServiceProviderUrls + +`func NewSamlProviderPostBodyServiceProviderUrls(signOn string, signOut string, ) *SamlProviderPostBodyServiceProviderUrls` + +NewSamlProviderPostBodyServiceProviderUrls instantiates a new SamlProviderPostBodyServiceProviderUrls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPostBodyServiceProviderUrlsWithDefaults + +`func NewSamlProviderPostBodyServiceProviderUrlsWithDefaults() *SamlProviderPostBodyServiceProviderUrls` + +NewSamlProviderPostBodyServiceProviderUrlsWithDefaults instantiates a new SamlProviderPostBodyServiceProviderUrls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignOn + +`func (o *SamlProviderPostBodyServiceProviderUrls) GetSignOn() string` + +GetSignOn returns the SignOn field if non-nil, zero value otherwise. + +### GetSignOnOk + +`func (o *SamlProviderPostBodyServiceProviderUrls) GetSignOnOk() (*string, bool)` + +GetSignOnOk returns a tuple with the SignOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignOn + +`func (o *SamlProviderPostBodyServiceProviderUrls) SetSignOn(v string)` + +SetSignOn sets SignOn field to given value. + + +### GetSignOut + +`func (o *SamlProviderPostBodyServiceProviderUrls) GetSignOut() string` + +GetSignOut returns the SignOut field if non-nil, zero value otherwise. + +### GetSignOutOk + +`func (o *SamlProviderPostBodyServiceProviderUrls) GetSignOutOk() (*string, bool)` + +GetSignOutOk returns a tuple with the SignOut field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignOut + +`func (o *SamlProviderPostBodyServiceProviderUrls) SetSignOut(v string)` + +SetSignOut sets SignOut field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/docs/SamlProviderPostBodyType.md b/idp/docs/SamlProviderPostBodyType.md new file mode 100644 index 0000000..4745722 --- /dev/null +++ b/idp/docs/SamlProviderPostBodyType.md @@ -0,0 +1,77 @@ +# SamlProviderPostBodyType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Name** | **string** | | + +## Methods + +### NewSamlProviderPostBodyType + +`func NewSamlProviderPostBodyType(name string, ) *SamlProviderPostBodyType` + +NewSamlProviderPostBodyType instantiates a new SamlProviderPostBodyType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSamlProviderPostBodyTypeWithDefaults + +`func NewSamlProviderPostBodyTypeWithDefaults() *SamlProviderPostBodyType` + +NewSamlProviderPostBodyTypeWithDefaults instantiates a new SamlProviderPostBodyType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *SamlProviderPostBodyType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SamlProviderPostBodyType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SamlProviderPostBodyType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SamlProviderPostBodyType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *SamlProviderPostBodyType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SamlProviderPostBodyType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SamlProviderPostBodyType) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/idp/model_idp.go b/idp/model_idp.go index 48fe1c2..28e98b7 100644 --- a/idp/model_idp.go +++ b/idp/model_idp.go @@ -12,331 +12,131 @@ package idp import ( "encoding/json" + "fmt" ) -// checks if the Idp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Idp{} - -// Idp struct for Idp +// Idp - struct for Idp type Idp struct { - ProviderId *string `json:"provider_id,omitempty"` - OrgId *string `json:"org_id,omitempty"` - Name *string `json:"name,omitempty"` - Type *ModelType `json:"type,omitempty"` - Saml *Saml `json:"saml,omitempty"` - AllowUntrustedCertificates *bool `json:"allow_untrusted_certificates,omitempty"` - OidcProvider *OidcProvider `json:"oidc_provider,omitempty"` - ServiceProvider *ServiceProvider `json:"service_provider,omitempty"` -} - -// NewIdp instantiates a new Idp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewIdp() *Idp { - this := Idp{} - return &this -} - -// NewIdpWithDefaults instantiates a new Idp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewIdpWithDefaults() *Idp { - this := Idp{} - return &this + LdapProviderGet *LdapProviderGet + OpenIDProviderGet *OpenIDProviderGet + SamlProviderGet *SamlProviderGet } -// GetProviderId returns the ProviderId field value if set, zero value otherwise. -func (o *Idp) GetProviderId() string { - if o == nil || IsNil(o.ProviderId) { - var ret string - return ret +// LdapProviderGetAsIdp is a convenience function that returns LdapProviderGet wrapped in Idp +func LdapProviderGetAsIdp(v *LdapProviderGet) Idp { + return Idp{ + LdapProviderGet: v, } - return *o.ProviderId } -// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Idp) GetProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.ProviderId) { - return nil, false +// OpenIDProviderGetAsIdp is a convenience function that returns OpenIDProviderGet wrapped in Idp +func OpenIDProviderGetAsIdp(v *OpenIDProviderGet) Idp { + return Idp{ + OpenIDProviderGet: v, } - return o.ProviderId, true } -// HasProviderId returns a boolean if a field has been set. -func (o *Idp) HasProviderId() bool { - if o != nil && !IsNil(o.ProviderId) { - return true +// SamlProviderGetAsIdp is a convenience function that returns SamlProviderGet wrapped in Idp +func SamlProviderGetAsIdp(v *SamlProviderGet) Idp { + return Idp{ + SamlProviderGet: v, } - - return false } -// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. -func (o *Idp) SetProviderId(v string) { - o.ProviderId = &v -} -// GetOrgId returns the OrgId field value if set, zero value otherwise. -func (o *Idp) GetOrgId() string { - if o == nil || IsNil(o.OrgId) { - var ret string - return ret +// Unmarshal JSON data into one of the pointers in the struct +func (dst *Idp) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into LdapProviderGet + err = newStrictDecoder(data).Decode(&dst.LdapProviderGet) + if err == nil { + jsonLdapProviderGet, _ := json.Marshal(dst.LdapProviderGet) + if string(jsonLdapProviderGet) == "{}" { // empty struct + dst.LdapProviderGet = nil + } else { + match++ + } + } else { + dst.LdapProviderGet = nil } - return *o.OrgId -} -// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Idp) GetOrgIdOk() (*string, bool) { - if o == nil || IsNil(o.OrgId) { - return nil, false + // try to unmarshal data into OpenIDProviderGet + err = newStrictDecoder(data).Decode(&dst.OpenIDProviderGet) + if err == nil { + jsonOpenIDProviderGet, _ := json.Marshal(dst.OpenIDProviderGet) + if string(jsonOpenIDProviderGet) == "{}" { // empty struct + dst.OpenIDProviderGet = nil + } else { + match++ + } + } else { + dst.OpenIDProviderGet = nil } - return o.OrgId, true -} -// HasOrgId returns a boolean if a field has been set. -func (o *Idp) HasOrgId() bool { - if o != nil && !IsNil(o.OrgId) { - return true + // try to unmarshal data into SamlProviderGet + err = newStrictDecoder(data).Decode(&dst.SamlProviderGet) + if err == nil { + jsonSamlProviderGet, _ := json.Marshal(dst.SamlProviderGet) + if string(jsonSamlProviderGet) == "{}" { // empty struct + dst.SamlProviderGet = nil + } else { + match++ + } + } else { + dst.SamlProviderGet = nil } - return false -} - -// SetOrgId gets a reference to the given string and assigns it to the OrgId field. -func (o *Idp) SetOrgId(v string) { - o.OrgId = &v -} + if match > 1 { // more than 1 match + // reset to nil + dst.LdapProviderGet = nil + dst.OpenIDProviderGet = nil + dst.SamlProviderGet = nil -// GetName returns the Name field value if set, zero value otherwise. -func (o *Idp) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret + return fmt.Errorf("data matches more than one schema in oneOf(Idp)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(Idp)") } - return *o.Name } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Idp) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false +// Marshal data from the first non-nil pointers in the struct to JSON +func (src Idp) MarshalJSON() ([]byte, error) { + if src.LdapProviderGet != nil { + return json.Marshal(&src.LdapProviderGet) } - return o.Name, true -} -// HasName returns a boolean if a field has been set. -func (o *Idp) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true + if src.OpenIDProviderGet != nil { + return json.Marshal(&src.OpenIDProviderGet) } - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *Idp) SetName(v string) { - o.Name = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *Idp) GetType() ModelType { - if o == nil || IsNil(o.Type) { - var ret ModelType - return ret + if src.SamlProviderGet != nil { + return json.Marshal(&src.SamlProviderGet) } - return *o.Type -} -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Idp) GetTypeOk() (*ModelType, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true + return nil, nil // no data in oneOf schemas } -// HasType returns a boolean if a field has been set. -func (o *Idp) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true +// Get the actual instance +func (obj *Idp) GetActualInstance() (interface{}) { + if obj == nil { + return nil } - - return false -} - -// SetType gets a reference to the given ModelType and assigns it to the Type field. -func (o *Idp) SetType(v ModelType) { - o.Type = &v -} - -// GetSaml returns the Saml field value if set, zero value otherwise. -func (o *Idp) GetSaml() Saml { - if o == nil || IsNil(o.Saml) { - var ret Saml - return ret + if obj.LdapProviderGet != nil { + return obj.LdapProviderGet } - return *o.Saml -} -// GetSamlOk returns a tuple with the Saml field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Idp) GetSamlOk() (*Saml, bool) { - if o == nil || IsNil(o.Saml) { - return nil, false + if obj.OpenIDProviderGet != nil { + return obj.OpenIDProviderGet } - return o.Saml, true -} -// HasSaml returns a boolean if a field has been set. -func (o *Idp) HasSaml() bool { - if o != nil && !IsNil(o.Saml) { - return true + if obj.SamlProviderGet != nil { + return obj.SamlProviderGet } - return false -} - -// SetSaml gets a reference to the given Saml and assigns it to the Saml field. -func (o *Idp) SetSaml(v Saml) { - o.Saml = &v -} - -// GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field value if set, zero value otherwise. -func (o *Idp) GetAllowUntrustedCertificates() bool { - if o == nil || IsNil(o.AllowUntrustedCertificates) { - var ret bool - return ret - } - return *o.AllowUntrustedCertificates -} - -// GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Idp) GetAllowUntrustedCertificatesOk() (*bool, bool) { - if o == nil || IsNil(o.AllowUntrustedCertificates) { - return nil, false - } - return o.AllowUntrustedCertificates, true -} - -// HasAllowUntrustedCertificates returns a boolean if a field has been set. -func (o *Idp) HasAllowUntrustedCertificates() bool { - if o != nil && !IsNil(o.AllowUntrustedCertificates) { - return true - } - - return false -} - -// SetAllowUntrustedCertificates gets a reference to the given bool and assigns it to the AllowUntrustedCertificates field. -func (o *Idp) SetAllowUntrustedCertificates(v bool) { - o.AllowUntrustedCertificates = &v -} - -// GetOidcProvider returns the OidcProvider field value if set, zero value otherwise. -func (o *Idp) GetOidcProvider() OidcProvider { - if o == nil || IsNil(o.OidcProvider) { - var ret OidcProvider - return ret - } - return *o.OidcProvider -} - -// GetOidcProviderOk returns a tuple with the OidcProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Idp) GetOidcProviderOk() (*OidcProvider, bool) { - if o == nil || IsNil(o.OidcProvider) { - return nil, false - } - return o.OidcProvider, true -} - -// HasOidcProvider returns a boolean if a field has been set. -func (o *Idp) HasOidcProvider() bool { - if o != nil && !IsNil(o.OidcProvider) { - return true - } - - return false -} - -// SetOidcProvider gets a reference to the given OidcProvider and assigns it to the OidcProvider field. -func (o *Idp) SetOidcProvider(v OidcProvider) { - o.OidcProvider = &v -} - -// GetServiceProvider returns the ServiceProvider field value if set, zero value otherwise. -func (o *Idp) GetServiceProvider() ServiceProvider { - if o == nil || IsNil(o.ServiceProvider) { - var ret ServiceProvider - return ret - } - return *o.ServiceProvider -} - -// GetServiceProviderOk returns a tuple with the ServiceProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Idp) GetServiceProviderOk() (*ServiceProvider, bool) { - if o == nil || IsNil(o.ServiceProvider) { - return nil, false - } - return o.ServiceProvider, true -} - -// HasServiceProvider returns a boolean if a field has been set. -func (o *Idp) HasServiceProvider() bool { - if o != nil && !IsNil(o.ServiceProvider) { - return true - } - - return false -} - -// SetServiceProvider gets a reference to the given ServiceProvider and assigns it to the ServiceProvider field. -func (o *Idp) SetServiceProvider(v ServiceProvider) { - o.ServiceProvider = &v -} - -func (o Idp) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o Idp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ProviderId) { - toSerialize["provider_id"] = o.ProviderId - } - if !IsNil(o.OrgId) { - toSerialize["org_id"] = o.OrgId - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.Saml) { - toSerialize["saml"] = o.Saml - } - if !IsNil(o.AllowUntrustedCertificates) { - toSerialize["allow_untrusted_certificates"] = o.AllowUntrustedCertificates - } - if !IsNil(o.OidcProvider) { - toSerialize["oidc_provider"] = o.OidcProvider - } - if !IsNil(o.ServiceProvider) { - toSerialize["service_provider"] = o.ServiceProvider - } - return toSerialize, nil + // all schemas are nil + return nil } type NullableIdp struct { diff --git a/idp/model_idp_patch_body.go b/idp/model_idp_patch_body.go index 5e991e7..f689f85 100644 --- a/idp/model_idp_patch_body.go +++ b/idp/model_idp_patch_body.go @@ -12,259 +12,131 @@ package idp import ( "encoding/json" + "fmt" ) -// checks if the IdpPatchBody type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &IdpPatchBody{} - -// IdpPatchBody struct for IdpPatchBody +// IdpPatchBody - struct for IdpPatchBody type IdpPatchBody struct { - Name *string `json:"name,omitempty"` - Type *IdpPatchBodyType `json:"type,omitempty"` - OidcProvider *OidcProvider1 `json:"oidc_provider,omitempty"` - AllowUntrustedCertificates *bool `json:"allow_untrusted_certificates,omitempty"` - Saml *Saml1 `json:"saml,omitempty"` - ServiceProvider *ServiceProvider1 `json:"service_provider,omitempty"` -} - -// NewIdpPatchBody instantiates a new IdpPatchBody object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewIdpPatchBody() *IdpPatchBody { - this := IdpPatchBody{} - return &this + LdapProviderPatch *LdapProviderPatch + OpenIDProviderPatch *OpenIDProviderPatch + SamlProviderPatch *SamlProviderPatch } -// NewIdpPatchBodyWithDefaults instantiates a new IdpPatchBody object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewIdpPatchBodyWithDefaults() *IdpPatchBody { - this := IdpPatchBody{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *IdpPatchBody) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret +// LdapProviderPatchAsIdpPatchBody is a convenience function that returns LdapProviderPatch wrapped in IdpPatchBody +func LdapProviderPatchAsIdpPatchBody(v *LdapProviderPatch) IdpPatchBody { + return IdpPatchBody{ + LdapProviderPatch: v, } - return *o.Name } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPatchBody) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false +// OpenIDProviderPatchAsIdpPatchBody is a convenience function that returns OpenIDProviderPatch wrapped in IdpPatchBody +func OpenIDProviderPatchAsIdpPatchBody(v *OpenIDProviderPatch) IdpPatchBody { + return IdpPatchBody{ + OpenIDProviderPatch: v, } - return o.Name, true } -// HasName returns a boolean if a field has been set. -func (o *IdpPatchBody) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true +// SamlProviderPatchAsIdpPatchBody is a convenience function that returns SamlProviderPatch wrapped in IdpPatchBody +func SamlProviderPatchAsIdpPatchBody(v *SamlProviderPatch) IdpPatchBody { + return IdpPatchBody{ + SamlProviderPatch: v, } - - return false } -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *IdpPatchBody) SetName(v string) { - o.Name = &v -} -// GetType returns the Type field value if set, zero value otherwise. -func (o *IdpPatchBody) GetType() IdpPatchBodyType { - if o == nil || IsNil(o.Type) { - var ret IdpPatchBodyType - return ret +// Unmarshal JSON data into one of the pointers in the struct +func (dst *IdpPatchBody) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into LdapProviderPatch + err = newStrictDecoder(data).Decode(&dst.LdapProviderPatch) + if err == nil { + jsonLdapProviderPatch, _ := json.Marshal(dst.LdapProviderPatch) + if string(jsonLdapProviderPatch) == "{}" { // empty struct + dst.LdapProviderPatch = nil + } else { + match++ + } + } else { + dst.LdapProviderPatch = nil } - return *o.Type -} -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPatchBody) GetTypeOk() (*IdpPatchBodyType, bool) { - if o == nil || IsNil(o.Type) { - return nil, false + // try to unmarshal data into OpenIDProviderPatch + err = newStrictDecoder(data).Decode(&dst.OpenIDProviderPatch) + if err == nil { + jsonOpenIDProviderPatch, _ := json.Marshal(dst.OpenIDProviderPatch) + if string(jsonOpenIDProviderPatch) == "{}" { // empty struct + dst.OpenIDProviderPatch = nil + } else { + match++ + } + } else { + dst.OpenIDProviderPatch = nil } - return o.Type, true -} -// HasType returns a boolean if a field has been set. -func (o *IdpPatchBody) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true + // try to unmarshal data into SamlProviderPatch + err = newStrictDecoder(data).Decode(&dst.SamlProviderPatch) + if err == nil { + jsonSamlProviderPatch, _ := json.Marshal(dst.SamlProviderPatch) + if string(jsonSamlProviderPatch) == "{}" { // empty struct + dst.SamlProviderPatch = nil + } else { + match++ + } + } else { + dst.SamlProviderPatch = nil } - return false -} - -// SetType gets a reference to the given IdpPatchBodyType and assigns it to the Type field. -func (o *IdpPatchBody) SetType(v IdpPatchBodyType) { - o.Type = &v -} + if match > 1 { // more than 1 match + // reset to nil + dst.LdapProviderPatch = nil + dst.OpenIDProviderPatch = nil + dst.SamlProviderPatch = nil -// GetOidcProvider returns the OidcProvider field value if set, zero value otherwise. -func (o *IdpPatchBody) GetOidcProvider() OidcProvider1 { - if o == nil || IsNil(o.OidcProvider) { - var ret OidcProvider1 - return ret + return fmt.Errorf("data matches more than one schema in oneOf(IdpPatchBody)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(IdpPatchBody)") } - return *o.OidcProvider } -// GetOidcProviderOk returns a tuple with the OidcProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPatchBody) GetOidcProviderOk() (*OidcProvider1, bool) { - if o == nil || IsNil(o.OidcProvider) { - return nil, false +// Marshal data from the first non-nil pointers in the struct to JSON +func (src IdpPatchBody) MarshalJSON() ([]byte, error) { + if src.LdapProviderPatch != nil { + return json.Marshal(&src.LdapProviderPatch) } - return o.OidcProvider, true -} -// HasOidcProvider returns a boolean if a field has been set. -func (o *IdpPatchBody) HasOidcProvider() bool { - if o != nil && !IsNil(o.OidcProvider) { - return true + if src.OpenIDProviderPatch != nil { + return json.Marshal(&src.OpenIDProviderPatch) } - return false -} - -// SetOidcProvider gets a reference to the given OidcProvider1 and assigns it to the OidcProvider field. -func (o *IdpPatchBody) SetOidcProvider(v OidcProvider1) { - o.OidcProvider = &v -} - -// GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field value if set, zero value otherwise. -func (o *IdpPatchBody) GetAllowUntrustedCertificates() bool { - if o == nil || IsNil(o.AllowUntrustedCertificates) { - var ret bool - return ret + if src.SamlProviderPatch != nil { + return json.Marshal(&src.SamlProviderPatch) } - return *o.AllowUntrustedCertificates -} -// GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPatchBody) GetAllowUntrustedCertificatesOk() (*bool, bool) { - if o == nil || IsNil(o.AllowUntrustedCertificates) { - return nil, false - } - return o.AllowUntrustedCertificates, true + return nil, nil // no data in oneOf schemas } -// HasAllowUntrustedCertificates returns a boolean if a field has been set. -func (o *IdpPatchBody) HasAllowUntrustedCertificates() bool { - if o != nil && !IsNil(o.AllowUntrustedCertificates) { - return true +// Get the actual instance +func (obj *IdpPatchBody) GetActualInstance() (interface{}) { + if obj == nil { + return nil } - - return false -} - -// SetAllowUntrustedCertificates gets a reference to the given bool and assigns it to the AllowUntrustedCertificates field. -func (o *IdpPatchBody) SetAllowUntrustedCertificates(v bool) { - o.AllowUntrustedCertificates = &v -} - -// GetSaml returns the Saml field value if set, zero value otherwise. -func (o *IdpPatchBody) GetSaml() Saml1 { - if o == nil || IsNil(o.Saml) { - var ret Saml1 - return ret + if obj.LdapProviderPatch != nil { + return obj.LdapProviderPatch } - return *o.Saml -} -// GetSamlOk returns a tuple with the Saml field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPatchBody) GetSamlOk() (*Saml1, bool) { - if o == nil || IsNil(o.Saml) { - return nil, false + if obj.OpenIDProviderPatch != nil { + return obj.OpenIDProviderPatch } - return o.Saml, true -} -// HasSaml returns a boolean if a field has been set. -func (o *IdpPatchBody) HasSaml() bool { - if o != nil && !IsNil(o.Saml) { - return true + if obj.SamlProviderPatch != nil { + return obj.SamlProviderPatch } - return false -} - -// SetSaml gets a reference to the given Saml1 and assigns it to the Saml field. -func (o *IdpPatchBody) SetSaml(v Saml1) { - o.Saml = &v -} - -// GetServiceProvider returns the ServiceProvider field value if set, zero value otherwise. -func (o *IdpPatchBody) GetServiceProvider() ServiceProvider1 { - if o == nil || IsNil(o.ServiceProvider) { - var ret ServiceProvider1 - return ret - } - return *o.ServiceProvider -} - -// GetServiceProviderOk returns a tuple with the ServiceProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPatchBody) GetServiceProviderOk() (*ServiceProvider1, bool) { - if o == nil || IsNil(o.ServiceProvider) { - return nil, false - } - return o.ServiceProvider, true -} - -// HasServiceProvider returns a boolean if a field has been set. -func (o *IdpPatchBody) HasServiceProvider() bool { - if o != nil && !IsNil(o.ServiceProvider) { - return true - } - - return false -} - -// SetServiceProvider gets a reference to the given ServiceProvider1 and assigns it to the ServiceProvider field. -func (o *IdpPatchBody) SetServiceProvider(v ServiceProvider1) { - o.ServiceProvider = &v -} - -func (o IdpPatchBody) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o IdpPatchBody) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.OidcProvider) { - toSerialize["oidc_provider"] = o.OidcProvider - } - if !IsNil(o.AllowUntrustedCertificates) { - toSerialize["allow_untrusted_certificates"] = o.AllowUntrustedCertificates - } - if !IsNil(o.Saml) { - toSerialize["saml"] = o.Saml - } - if !IsNil(o.ServiceProvider) { - toSerialize["service_provider"] = o.ServiceProvider - } - return toSerialize, nil + // all schemas are nil + return nil } type NullableIdpPatchBody struct { diff --git a/idp/model_idp_post_body.go b/idp/model_idp_post_body.go index 16273cd..cf025d4 100644 --- a/idp/model_idp_post_body.go +++ b/idp/model_idp_post_body.go @@ -12,259 +12,161 @@ package idp import ( "encoding/json" + "fmt" ) -// checks if the IdpPostBody type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &IdpPostBody{} - -// IdpPostBody struct for IdpPostBody +// IdpPostBody - struct for IdpPostBody type IdpPostBody struct { - Name *string `json:"name,omitempty"` - Type *IdpPostBodyType `json:"type,omitempty"` - OidcProvider *OidcProvider1 `json:"oidc_provider,omitempty"` - AllowUntrustedCertificates *bool `json:"allow_untrusted_certificates,omitempty"` - Saml *Saml1 `json:"saml,omitempty"` - ServiceProvider *ServiceProvider1 `json:"service_provider,omitempty"` -} - -// NewIdpPostBody instantiates a new IdpPostBody object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewIdpPostBody() *IdpPostBody { - this := IdpPostBody{} - return &this + LdapProviderPostBody *LdapProviderPostBody + OpenIDProviderDynamicPostBody *OpenIDProviderDynamicPostBody + OpenIDProviderManualPostBody *OpenIDProviderManualPostBody + SamlProviderPostBody *SamlProviderPostBody } -// NewIdpPostBodyWithDefaults instantiates a new IdpPostBody object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewIdpPostBodyWithDefaults() *IdpPostBody { - this := IdpPostBody{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *IdpPostBody) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret +// LdapProviderPostBodyAsIdpPostBody is a convenience function that returns LdapProviderPostBody wrapped in IdpPostBody +func LdapProviderPostBodyAsIdpPostBody(v *LdapProviderPostBody) IdpPostBody { + return IdpPostBody{ + LdapProviderPostBody: v, } - return *o.Name } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPostBody) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false +// OpenIDProviderDynamicPostBodyAsIdpPostBody is a convenience function that returns OpenIDProviderDynamicPostBody wrapped in IdpPostBody +func OpenIDProviderDynamicPostBodyAsIdpPostBody(v *OpenIDProviderDynamicPostBody) IdpPostBody { + return IdpPostBody{ + OpenIDProviderDynamicPostBody: v, } - return o.Name, true } -// HasName returns a boolean if a field has been set. -func (o *IdpPostBody) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true +// OpenIDProviderManualPostBodyAsIdpPostBody is a convenience function that returns OpenIDProviderManualPostBody wrapped in IdpPostBody +func OpenIDProviderManualPostBodyAsIdpPostBody(v *OpenIDProviderManualPostBody) IdpPostBody { + return IdpPostBody{ + OpenIDProviderManualPostBody: v, } - - return false } -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *IdpPostBody) SetName(v string) { - o.Name = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *IdpPostBody) GetType() IdpPostBodyType { - if o == nil || IsNil(o.Type) { - var ret IdpPostBodyType - return ret +// SamlProviderPostBodyAsIdpPostBody is a convenience function that returns SamlProviderPostBody wrapped in IdpPostBody +func SamlProviderPostBodyAsIdpPostBody(v *SamlProviderPostBody) IdpPostBody { + return IdpPostBody{ + SamlProviderPostBody: v, } - return *o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPostBody) GetTypeOk() (*IdpPostBodyType, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} -// HasType returns a boolean if a field has been set. -func (o *IdpPostBody) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true +// Unmarshal JSON data into one of the pointers in the struct +func (dst *IdpPostBody) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into LdapProviderPostBody + err = newStrictDecoder(data).Decode(&dst.LdapProviderPostBody) + if err == nil { + jsonLdapProviderPostBody, _ := json.Marshal(dst.LdapProviderPostBody) + if string(jsonLdapProviderPostBody) == "{}" { // empty struct + dst.LdapProviderPostBody = nil + } else { + match++ + } + } else { + dst.LdapProviderPostBody = nil } - return false -} - -// SetType gets a reference to the given IdpPostBodyType and assigns it to the Type field. -func (o *IdpPostBody) SetType(v IdpPostBodyType) { - o.Type = &v -} - -// GetOidcProvider returns the OidcProvider field value if set, zero value otherwise. -func (o *IdpPostBody) GetOidcProvider() OidcProvider1 { - if o == nil || IsNil(o.OidcProvider) { - var ret OidcProvider1 - return ret + // try to unmarshal data into OpenIDProviderDynamicPostBody + err = newStrictDecoder(data).Decode(&dst.OpenIDProviderDynamicPostBody) + if err == nil { + jsonOpenIDProviderDynamicPostBody, _ := json.Marshal(dst.OpenIDProviderDynamicPostBody) + if string(jsonOpenIDProviderDynamicPostBody) == "{}" { // empty struct + dst.OpenIDProviderDynamicPostBody = nil + } else { + match++ + } + } else { + dst.OpenIDProviderDynamicPostBody = nil } - return *o.OidcProvider -} -// GetOidcProviderOk returns a tuple with the OidcProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPostBody) GetOidcProviderOk() (*OidcProvider1, bool) { - if o == nil || IsNil(o.OidcProvider) { - return nil, false + // try to unmarshal data into OpenIDProviderManualPostBody + err = newStrictDecoder(data).Decode(&dst.OpenIDProviderManualPostBody) + if err == nil { + jsonOpenIDProviderManualPostBody, _ := json.Marshal(dst.OpenIDProviderManualPostBody) + if string(jsonOpenIDProviderManualPostBody) == "{}" { // empty struct + dst.OpenIDProviderManualPostBody = nil + } else { + match++ + } + } else { + dst.OpenIDProviderManualPostBody = nil } - return o.OidcProvider, true -} -// HasOidcProvider returns a boolean if a field has been set. -func (o *IdpPostBody) HasOidcProvider() bool { - if o != nil && !IsNil(o.OidcProvider) { - return true + // try to unmarshal data into SamlProviderPostBody + err = newStrictDecoder(data).Decode(&dst.SamlProviderPostBody) + if err == nil { + jsonSamlProviderPostBody, _ := json.Marshal(dst.SamlProviderPostBody) + if string(jsonSamlProviderPostBody) == "{}" { // empty struct + dst.SamlProviderPostBody = nil + } else { + match++ + } + } else { + dst.SamlProviderPostBody = nil } - return false -} - -// SetOidcProvider gets a reference to the given OidcProvider1 and assigns it to the OidcProvider field. -func (o *IdpPostBody) SetOidcProvider(v OidcProvider1) { - o.OidcProvider = &v -} - -// GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field value if set, zero value otherwise. -func (o *IdpPostBody) GetAllowUntrustedCertificates() bool { - if o == nil || IsNil(o.AllowUntrustedCertificates) { - var ret bool - return ret - } - return *o.AllowUntrustedCertificates -} + if match > 1 { // more than 1 match + // reset to nil + dst.LdapProviderPostBody = nil + dst.OpenIDProviderDynamicPostBody = nil + dst.OpenIDProviderManualPostBody = nil + dst.SamlProviderPostBody = nil -// GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPostBody) GetAllowUntrustedCertificatesOk() (*bool, bool) { - if o == nil || IsNil(o.AllowUntrustedCertificates) { - return nil, false + return fmt.Errorf("data matches more than one schema in oneOf(IdpPostBody)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(IdpPostBody)") } - return o.AllowUntrustedCertificates, true } -// HasAllowUntrustedCertificates returns a boolean if a field has been set. -func (o *IdpPostBody) HasAllowUntrustedCertificates() bool { - if o != nil && !IsNil(o.AllowUntrustedCertificates) { - return true +// Marshal data from the first non-nil pointers in the struct to JSON +func (src IdpPostBody) MarshalJSON() ([]byte, error) { + if src.LdapProviderPostBody != nil { + return json.Marshal(&src.LdapProviderPostBody) } - return false -} - -// SetAllowUntrustedCertificates gets a reference to the given bool and assigns it to the AllowUntrustedCertificates field. -func (o *IdpPostBody) SetAllowUntrustedCertificates(v bool) { - o.AllowUntrustedCertificates = &v -} - -// GetSaml returns the Saml field value if set, zero value otherwise. -func (o *IdpPostBody) GetSaml() Saml1 { - if o == nil || IsNil(o.Saml) { - var ret Saml1 - return ret + if src.OpenIDProviderDynamicPostBody != nil { + return json.Marshal(&src.OpenIDProviderDynamicPostBody) } - return *o.Saml -} -// GetSamlOk returns a tuple with the Saml field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPostBody) GetSamlOk() (*Saml1, bool) { - if o == nil || IsNil(o.Saml) { - return nil, false + if src.OpenIDProviderManualPostBody != nil { + return json.Marshal(&src.OpenIDProviderManualPostBody) } - return o.Saml, true -} -// HasSaml returns a boolean if a field has been set. -func (o *IdpPostBody) HasSaml() bool { - if o != nil && !IsNil(o.Saml) { - return true + if src.SamlProviderPostBody != nil { + return json.Marshal(&src.SamlProviderPostBody) } - return false + return nil, nil // no data in oneOf schemas } -// SetSaml gets a reference to the given Saml1 and assigns it to the Saml field. -func (o *IdpPostBody) SetSaml(v Saml1) { - o.Saml = &v -} - -// GetServiceProvider returns the ServiceProvider field value if set, zero value otherwise. -func (o *IdpPostBody) GetServiceProvider() ServiceProvider1 { - if o == nil || IsNil(o.ServiceProvider) { - var ret ServiceProvider1 - return ret +// Get the actual instance +func (obj *IdpPostBody) GetActualInstance() (interface{}) { + if obj == nil { + return nil } - return *o.ServiceProvider -} - -// GetServiceProviderOk returns a tuple with the ServiceProvider field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IdpPostBody) GetServiceProviderOk() (*ServiceProvider1, bool) { - if o == nil || IsNil(o.ServiceProvider) { - return nil, false + if obj.LdapProviderPostBody != nil { + return obj.LdapProviderPostBody } - return o.ServiceProvider, true -} -// HasServiceProvider returns a boolean if a field has been set. -func (o *IdpPostBody) HasServiceProvider() bool { - if o != nil && !IsNil(o.ServiceProvider) { - return true + if obj.OpenIDProviderDynamicPostBody != nil { + return obj.OpenIDProviderDynamicPostBody } - return false -} - -// SetServiceProvider gets a reference to the given ServiceProvider1 and assigns it to the ServiceProvider field. -func (o *IdpPostBody) SetServiceProvider(v ServiceProvider1) { - o.ServiceProvider = &v -} - -func (o IdpPostBody) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err + if obj.OpenIDProviderManualPostBody != nil { + return obj.OpenIDProviderManualPostBody } - return json.Marshal(toSerialize) -} -func (o IdpPostBody) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if obj.SamlProviderPostBody != nil { + return obj.SamlProviderPostBody } - if !IsNil(o.OidcProvider) { - toSerialize["oidc_provider"] = o.OidcProvider - } - if !IsNil(o.AllowUntrustedCertificates) { - toSerialize["allow_untrusted_certificates"] = o.AllowUntrustedCertificates - } - if !IsNil(o.Saml) { - toSerialize["saml"] = o.Saml - } - if !IsNil(o.ServiceProvider) { - toSerialize["service_provider"] = o.ServiceProvider - } - return toSerialize, nil + + // all schemas are nil + return nil } type NullableIdpPostBody struct { diff --git a/idp/model_idp_summary.go b/idp/model_idp_summary.go index 1d33091..111b031 100644 --- a/idp/model_idp_summary.go +++ b/idp/model_idp_summary.go @@ -19,18 +19,22 @@ var _ MappedNullable = &IdpSummary{} // IdpSummary struct for IdpSummary type IdpSummary struct { - ProviderId *string `json:"provider_id,omitempty"` - OrgId *string `json:"org_id,omitempty"` - Name *string `json:"name,omitempty"` - Type *ModelType `json:"type,omitempty"` + ProviderId string `json:"provider_id"` + OrgId string `json:"org_id"` + Name string `json:"name"` + Type IdpSummaryType `json:"type"` } // NewIdpSummary instantiates a new IdpSummary object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewIdpSummary() *IdpSummary { +func NewIdpSummary(providerId string, orgId string, name string, type_ IdpSummaryType) *IdpSummary { this := IdpSummary{} + this.ProviderId = providerId + this.OrgId = orgId + this.Name = name + this.Type = type_ return &this } @@ -42,132 +46,100 @@ func NewIdpSummaryWithDefaults() *IdpSummary { return &this } -// GetProviderId returns the ProviderId field value if set, zero value otherwise. +// GetProviderId returns the ProviderId field value func (o *IdpSummary) GetProviderId() string { - if o == nil || IsNil(o.ProviderId) { + if o == nil { var ret string return ret } - return *o.ProviderId + + return o.ProviderId } -// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise +// GetProviderIdOk returns a tuple with the ProviderId field value // and a boolean to check if the value has been set. func (o *IdpSummary) GetProviderIdOk() (*string, bool) { - if o == nil || IsNil(o.ProviderId) { + if o == nil { return nil, false } - return o.ProviderId, true -} - -// HasProviderId returns a boolean if a field has been set. -func (o *IdpSummary) HasProviderId() bool { - if o != nil && !IsNil(o.ProviderId) { - return true - } - - return false + return &o.ProviderId, true } -// SetProviderId gets a reference to the given string and assigns it to the ProviderId field. +// SetProviderId sets field value func (o *IdpSummary) SetProviderId(v string) { - o.ProviderId = &v + o.ProviderId = v } -// GetOrgId returns the OrgId field value if set, zero value otherwise. +// GetOrgId returns the OrgId field value func (o *IdpSummary) GetOrgId() string { - if o == nil || IsNil(o.OrgId) { + if o == nil { var ret string return ret } - return *o.OrgId + + return o.OrgId } -// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// GetOrgIdOk returns a tuple with the OrgId field value // and a boolean to check if the value has been set. func (o *IdpSummary) GetOrgIdOk() (*string, bool) { - if o == nil || IsNil(o.OrgId) { + if o == nil { return nil, false } - return o.OrgId, true + return &o.OrgId, true } -// HasOrgId returns a boolean if a field has been set. -func (o *IdpSummary) HasOrgId() bool { - if o != nil && !IsNil(o.OrgId) { - return true - } - - return false -} - -// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +// SetOrgId sets field value func (o *IdpSummary) SetOrgId(v string) { - o.OrgId = &v + o.OrgId = v } -// GetName returns the Name field value if set, zero value otherwise. +// GetName returns the Name field value func (o *IdpSummary) GetName() string { - if o == nil || IsNil(o.Name) { + if o == nil { var ret string return ret } - return *o.Name + + return o.Name } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *IdpSummary) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { + if o == nil { return nil, false } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *IdpSummary) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false + return &o.Name, true } -// SetName gets a reference to the given string and assigns it to the Name field. +// SetName sets field value func (o *IdpSummary) SetName(v string) { - o.Name = &v + o.Name = v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *IdpSummary) GetType() ModelType { - if o == nil || IsNil(o.Type) { - var ret ModelType +// GetType returns the Type field value +func (o *IdpSummary) GetType() IdpSummaryType { + if o == nil { + var ret IdpSummaryType return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *IdpSummary) GetTypeOk() (*ModelType, bool) { - if o == nil || IsNil(o.Type) { +func (o *IdpSummary) GetTypeOk() (*IdpSummaryType, bool) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *IdpSummary) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given ModelType and assigns it to the Type field. -func (o *IdpSummary) SetType(v ModelType) { - o.Type = &v +// SetType sets field value +func (o *IdpSummary) SetType(v IdpSummaryType) { + o.Type = v } func (o IdpSummary) MarshalJSON() ([]byte, error) { @@ -180,18 +152,10 @@ func (o IdpSummary) MarshalJSON() ([]byte, error) { func (o IdpSummary) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.ProviderId) { - toSerialize["provider_id"] = o.ProviderId - } - if !IsNil(o.OrgId) { - toSerialize["org_id"] = o.OrgId - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["provider_id"] = o.ProviderId + toSerialize["org_id"] = o.OrgId + toSerialize["name"] = o.Name + toSerialize["type"] = o.Type return toSerialize, nil } diff --git a/idp/model_idp_summary_type.go b/idp/model_idp_summary_type.go new file mode 100644 index 0000000..fb608f2 --- /dev/null +++ b/idp/model_idp_summary_type.go @@ -0,0 +1,153 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the IdpSummaryType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IdpSummaryType{} + +// IdpSummaryType struct for IdpSummaryType +type IdpSummaryType struct { + Description *string `json:"description,omitempty"` + Name string `json:"name"` +} + +// NewIdpSummaryType instantiates a new IdpSummaryType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIdpSummaryType(name string) *IdpSummaryType { + this := IdpSummaryType{} + this.Name = name + return &this +} + +// NewIdpSummaryTypeWithDefaults instantiates a new IdpSummaryType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIdpSummaryTypeWithDefaults() *IdpSummaryType { + this := IdpSummaryType{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *IdpSummaryType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdpSummaryType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *IdpSummaryType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *IdpSummaryType) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *IdpSummaryType) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *IdpSummaryType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *IdpSummaryType) SetName(v string) { + o.Name = v +} + +func (o IdpSummaryType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IdpSummaryType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableIdpSummaryType struct { + value *IdpSummaryType + isSet bool +} + +func (v NullableIdpSummaryType) Get() *IdpSummaryType { + return v.value +} + +func (v *NullableIdpSummaryType) Set(val *IdpSummaryType) { + v.value = val + v.isSet = true +} + +func (v NullableIdpSummaryType) IsSet() bool { + return v.isSet +} + +func (v *NullableIdpSummaryType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIdpSummaryType(val *IdpSummaryType) *NullableIdpSummaryType { + return &NullableIdpSummaryType{value: val, isSet: true} +} + +func (v NullableIdpSummaryType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIdpSummaryType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_get.go b/idp/model_ldap_provider_get.go new file mode 100644 index 0000000..7492575 --- /dev/null +++ b/idp/model_ldap_provider_get.go @@ -0,0 +1,396 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderGet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderGet{} + +// LdapProviderGet struct for LdapProviderGet +type LdapProviderGet struct { + UserMapping LdapProviderPostBodyUserMapping `json:"user_mapping"` + Filters LdapProviderPostBodyFilters `json:"filters"` + Name string `json:"name"` + OrgId string `json:"org_id"` + Dns LdapProviderPostBodySearchBases `json:"dns"` + GroupMapping LdapProviderPostBodyGroupMapping `json:"group_mapping"` + Connection LdapProviderPostBodyConnection `json:"connection"` + ArcNamespace *string `json:"arc_namespace,omitempty"` + ProviderId string `json:"provider_id"` + Type LdapProviderPostBodyType `json:"type"` + SearchBases LdapProviderPostBodySearchBases `json:"search_bases"` +} + +// NewLdapProviderGet instantiates a new LdapProviderGet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderGet(userMapping LdapProviderPostBodyUserMapping, filters LdapProviderPostBodyFilters, name string, orgId string, dns LdapProviderPostBodySearchBases, groupMapping LdapProviderPostBodyGroupMapping, connection LdapProviderPostBodyConnection, providerId string, type_ LdapProviderPostBodyType, searchBases LdapProviderPostBodySearchBases) *LdapProviderGet { + this := LdapProviderGet{} + this.UserMapping = userMapping + this.Filters = filters + this.Name = name + this.OrgId = orgId + this.Dns = dns + this.GroupMapping = groupMapping + this.Connection = connection + this.ProviderId = providerId + this.Type = type_ + this.SearchBases = searchBases + return &this +} + +// NewLdapProviderGetWithDefaults instantiates a new LdapProviderGet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderGetWithDefaults() *LdapProviderGet { + this := LdapProviderGet{} + return &this +} + +// GetUserMapping returns the UserMapping field value +func (o *LdapProviderGet) GetUserMapping() LdapProviderPostBodyUserMapping { + if o == nil { + var ret LdapProviderPostBodyUserMapping + return ret + } + + return o.UserMapping +} + +// GetUserMappingOk returns a tuple with the UserMapping field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetUserMappingOk() (*LdapProviderPostBodyUserMapping, bool) { + if o == nil { + return nil, false + } + return &o.UserMapping, true +} + +// SetUserMapping sets field value +func (o *LdapProviderGet) SetUserMapping(v LdapProviderPostBodyUserMapping) { + o.UserMapping = v +} + +// GetFilters returns the Filters field value +func (o *LdapProviderGet) GetFilters() LdapProviderPostBodyFilters { + if o == nil { + var ret LdapProviderPostBodyFilters + return ret + } + + return o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetFiltersOk() (*LdapProviderPostBodyFilters, bool) { + if o == nil { + return nil, false + } + return &o.Filters, true +} + +// SetFilters sets field value +func (o *LdapProviderGet) SetFilters(v LdapProviderPostBodyFilters) { + o.Filters = v +} + +// GetName returns the Name field value +func (o *LdapProviderGet) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *LdapProviderGet) SetName(v string) { + o.Name = v +} + +// GetOrgId returns the OrgId field value +func (o *LdapProviderGet) GetOrgId() string { + if o == nil { + var ret string + return ret + } + + return o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetOrgIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgId, true +} + +// SetOrgId sets field value +func (o *LdapProviderGet) SetOrgId(v string) { + o.OrgId = v +} + +// GetDns returns the Dns field value +func (o *LdapProviderGet) GetDns() LdapProviderPostBodySearchBases { + if o == nil { + var ret LdapProviderPostBodySearchBases + return ret + } + + return o.Dns +} + +// GetDnsOk returns a tuple with the Dns field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetDnsOk() (*LdapProviderPostBodySearchBases, bool) { + if o == nil { + return nil, false + } + return &o.Dns, true +} + +// SetDns sets field value +func (o *LdapProviderGet) SetDns(v LdapProviderPostBodySearchBases) { + o.Dns = v +} + +// GetGroupMapping returns the GroupMapping field value +func (o *LdapProviderGet) GetGroupMapping() LdapProviderPostBodyGroupMapping { + if o == nil { + var ret LdapProviderPostBodyGroupMapping + return ret + } + + return o.GroupMapping +} + +// GetGroupMappingOk returns a tuple with the GroupMapping field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetGroupMappingOk() (*LdapProviderPostBodyGroupMapping, bool) { + if o == nil { + return nil, false + } + return &o.GroupMapping, true +} + +// SetGroupMapping sets field value +func (o *LdapProviderGet) SetGroupMapping(v LdapProviderPostBodyGroupMapping) { + o.GroupMapping = v +} + +// GetConnection returns the Connection field value +func (o *LdapProviderGet) GetConnection() LdapProviderPostBodyConnection { + if o == nil { + var ret LdapProviderPostBodyConnection + return ret + } + + return o.Connection +} + +// GetConnectionOk returns a tuple with the Connection field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetConnectionOk() (*LdapProviderPostBodyConnection, bool) { + if o == nil { + return nil, false + } + return &o.Connection, true +} + +// SetConnection sets field value +func (o *LdapProviderGet) SetConnection(v LdapProviderPostBodyConnection) { + o.Connection = v +} + +// GetArcNamespace returns the ArcNamespace field value if set, zero value otherwise. +func (o *LdapProviderGet) GetArcNamespace() string { + if o == nil || IsNil(o.ArcNamespace) { + var ret string + return ret + } + return *o.ArcNamespace +} + +// GetArcNamespaceOk returns a tuple with the ArcNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetArcNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.ArcNamespace) { + return nil, false + } + return o.ArcNamespace, true +} + +// HasArcNamespace returns a boolean if a field has been set. +func (o *LdapProviderGet) HasArcNamespace() bool { + if o != nil && !IsNil(o.ArcNamespace) { + return true + } + + return false +} + +// SetArcNamespace gets a reference to the given string and assigns it to the ArcNamespace field. +func (o *LdapProviderGet) SetArcNamespace(v string) { + o.ArcNamespace = &v +} + +// GetProviderId returns the ProviderId field value +func (o *LdapProviderGet) GetProviderId() string { + if o == nil { + var ret string + return ret + } + + return o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetProviderIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProviderId, true +} + +// SetProviderId sets field value +func (o *LdapProviderGet) SetProviderId(v string) { + o.ProviderId = v +} + +// GetType returns the Type field value +func (o *LdapProviderGet) GetType() LdapProviderPostBodyType { + if o == nil { + var ret LdapProviderPostBodyType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetTypeOk() (*LdapProviderPostBodyType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LdapProviderGet) SetType(v LdapProviderPostBodyType) { + o.Type = v +} + +// GetSearchBases returns the SearchBases field value +func (o *LdapProviderGet) GetSearchBases() LdapProviderPostBodySearchBases { + if o == nil { + var ret LdapProviderPostBodySearchBases + return ret + } + + return o.SearchBases +} + +// GetSearchBasesOk returns a tuple with the SearchBases field value +// and a boolean to check if the value has been set. +func (o *LdapProviderGet) GetSearchBasesOk() (*LdapProviderPostBodySearchBases, bool) { + if o == nil { + return nil, false + } + return &o.SearchBases, true +} + +// SetSearchBases sets field value +func (o *LdapProviderGet) SetSearchBases(v LdapProviderPostBodySearchBases) { + o.SearchBases = v +} + +func (o LdapProviderGet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderGet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["user_mapping"] = o.UserMapping + toSerialize["filters"] = o.Filters + toSerialize["name"] = o.Name + toSerialize["org_id"] = o.OrgId + toSerialize["dns"] = o.Dns + toSerialize["group_mapping"] = o.GroupMapping + toSerialize["connection"] = o.Connection + if !IsNil(o.ArcNamespace) { + toSerialize["arc_namespace"] = o.ArcNamespace + } + toSerialize["provider_id"] = o.ProviderId + toSerialize["type"] = o.Type + toSerialize["search_bases"] = o.SearchBases + return toSerialize, nil +} + +type NullableLdapProviderGet struct { + value *LdapProviderGet + isSet bool +} + +func (v NullableLdapProviderGet) Get() *LdapProviderGet { + return v.value +} + +func (v *NullableLdapProviderGet) Set(val *LdapProviderGet) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderGet) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderGet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderGet(val *LdapProviderGet) *NullableLdapProviderGet { + return &NullableLdapProviderGet{value: val, isSet: true} +} + +func (v NullableLdapProviderGet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderGet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_patch.go b/idp/model_ldap_provider_patch.go new file mode 100644 index 0000000..79f4128 --- /dev/null +++ b/idp/model_ldap_provider_patch.go @@ -0,0 +1,378 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPatch{} + +// LdapProviderPatch struct for LdapProviderPatch +type LdapProviderPatch struct { + Name *string `json:"name,omitempty"` + Type *SamlProviderPatchType `json:"type,omitempty"` + Connection *LdapProviderPatchConnection `json:"connection,omitempty"` + SearchBases *LdapProviderPatchSearchBases `json:"search_bases,omitempty"` + Dns *LdapProviderPatchSearchBases `json:"dns,omitempty"` + Filters *LdapProviderPatchFilters `json:"filters,omitempty"` + UserMapping *LdapProviderPatchUserMapping `json:"user_mapping,omitempty"` + GroupMapping *LdapProviderPatchGroupMapping `json:"group_mapping,omitempty"` +} + +// NewLdapProviderPatch instantiates a new LdapProviderPatch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPatch() *LdapProviderPatch { + this := LdapProviderPatch{} + return &this +} + +// NewLdapProviderPatchWithDefaults instantiates a new LdapProviderPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPatchWithDefaults() *LdapProviderPatch { + this := LdapProviderPatch{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *LdapProviderPatch) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatch) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *LdapProviderPatch) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *LdapProviderPatch) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *LdapProviderPatch) GetType() SamlProviderPatchType { + if o == nil || IsNil(o.Type) { + var ret SamlProviderPatchType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatch) GetTypeOk() (*SamlProviderPatchType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LdapProviderPatch) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given SamlProviderPatchType and assigns it to the Type field. +func (o *LdapProviderPatch) SetType(v SamlProviderPatchType) { + o.Type = &v +} + +// GetConnection returns the Connection field value if set, zero value otherwise. +func (o *LdapProviderPatch) GetConnection() LdapProviderPatchConnection { + if o == nil || IsNil(o.Connection) { + var ret LdapProviderPatchConnection + return ret + } + return *o.Connection +} + +// GetConnectionOk returns a tuple with the Connection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatch) GetConnectionOk() (*LdapProviderPatchConnection, bool) { + if o == nil || IsNil(o.Connection) { + return nil, false + } + return o.Connection, true +} + +// HasConnection returns a boolean if a field has been set. +func (o *LdapProviderPatch) HasConnection() bool { + if o != nil && !IsNil(o.Connection) { + return true + } + + return false +} + +// SetConnection gets a reference to the given LdapProviderPatchConnection and assigns it to the Connection field. +func (o *LdapProviderPatch) SetConnection(v LdapProviderPatchConnection) { + o.Connection = &v +} + +// GetSearchBases returns the SearchBases field value if set, zero value otherwise. +func (o *LdapProviderPatch) GetSearchBases() LdapProviderPatchSearchBases { + if o == nil || IsNil(o.SearchBases) { + var ret LdapProviderPatchSearchBases + return ret + } + return *o.SearchBases +} + +// GetSearchBasesOk returns a tuple with the SearchBases field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatch) GetSearchBasesOk() (*LdapProviderPatchSearchBases, bool) { + if o == nil || IsNil(o.SearchBases) { + return nil, false + } + return o.SearchBases, true +} + +// HasSearchBases returns a boolean if a field has been set. +func (o *LdapProviderPatch) HasSearchBases() bool { + if o != nil && !IsNil(o.SearchBases) { + return true + } + + return false +} + +// SetSearchBases gets a reference to the given LdapProviderPatchSearchBases and assigns it to the SearchBases field. +func (o *LdapProviderPatch) SetSearchBases(v LdapProviderPatchSearchBases) { + o.SearchBases = &v +} + +// GetDns returns the Dns field value if set, zero value otherwise. +func (o *LdapProviderPatch) GetDns() LdapProviderPatchSearchBases { + if o == nil || IsNil(o.Dns) { + var ret LdapProviderPatchSearchBases + return ret + } + return *o.Dns +} + +// GetDnsOk returns a tuple with the Dns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatch) GetDnsOk() (*LdapProviderPatchSearchBases, bool) { + if o == nil || IsNil(o.Dns) { + return nil, false + } + return o.Dns, true +} + +// HasDns returns a boolean if a field has been set. +func (o *LdapProviderPatch) HasDns() bool { + if o != nil && !IsNil(o.Dns) { + return true + } + + return false +} + +// SetDns gets a reference to the given LdapProviderPatchSearchBases and assigns it to the Dns field. +func (o *LdapProviderPatch) SetDns(v LdapProviderPatchSearchBases) { + o.Dns = &v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *LdapProviderPatch) GetFilters() LdapProviderPatchFilters { + if o == nil || IsNil(o.Filters) { + var ret LdapProviderPatchFilters + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatch) GetFiltersOk() (*LdapProviderPatchFilters, bool) { + if o == nil || IsNil(o.Filters) { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *LdapProviderPatch) HasFilters() bool { + if o != nil && !IsNil(o.Filters) { + return true + } + + return false +} + +// SetFilters gets a reference to the given LdapProviderPatchFilters and assigns it to the Filters field. +func (o *LdapProviderPatch) SetFilters(v LdapProviderPatchFilters) { + o.Filters = &v +} + +// GetUserMapping returns the UserMapping field value if set, zero value otherwise. +func (o *LdapProviderPatch) GetUserMapping() LdapProviderPatchUserMapping { + if o == nil || IsNil(o.UserMapping) { + var ret LdapProviderPatchUserMapping + return ret + } + return *o.UserMapping +} + +// GetUserMappingOk returns a tuple with the UserMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatch) GetUserMappingOk() (*LdapProviderPatchUserMapping, bool) { + if o == nil || IsNil(o.UserMapping) { + return nil, false + } + return o.UserMapping, true +} + +// HasUserMapping returns a boolean if a field has been set. +func (o *LdapProviderPatch) HasUserMapping() bool { + if o != nil && !IsNil(o.UserMapping) { + return true + } + + return false +} + +// SetUserMapping gets a reference to the given LdapProviderPatchUserMapping and assigns it to the UserMapping field. +func (o *LdapProviderPatch) SetUserMapping(v LdapProviderPatchUserMapping) { + o.UserMapping = &v +} + +// GetGroupMapping returns the GroupMapping field value if set, zero value otherwise. +func (o *LdapProviderPatch) GetGroupMapping() LdapProviderPatchGroupMapping { + if o == nil || IsNil(o.GroupMapping) { + var ret LdapProviderPatchGroupMapping + return ret + } + return *o.GroupMapping +} + +// GetGroupMappingOk returns a tuple with the GroupMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatch) GetGroupMappingOk() (*LdapProviderPatchGroupMapping, bool) { + if o == nil || IsNil(o.GroupMapping) { + return nil, false + } + return o.GroupMapping, true +} + +// HasGroupMapping returns a boolean if a field has been set. +func (o *LdapProviderPatch) HasGroupMapping() bool { + if o != nil && !IsNil(o.GroupMapping) { + return true + } + + return false +} + +// SetGroupMapping gets a reference to the given LdapProviderPatchGroupMapping and assigns it to the GroupMapping field. +func (o *LdapProviderPatch) SetGroupMapping(v LdapProviderPatchGroupMapping) { + o.GroupMapping = &v +} + +func (o LdapProviderPatch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Connection) { + toSerialize["connection"] = o.Connection + } + if !IsNil(o.SearchBases) { + toSerialize["search_bases"] = o.SearchBases + } + if !IsNil(o.Dns) { + toSerialize["dns"] = o.Dns + } + if !IsNil(o.Filters) { + toSerialize["filters"] = o.Filters + } + if !IsNil(o.UserMapping) { + toSerialize["user_mapping"] = o.UserMapping + } + if !IsNil(o.GroupMapping) { + toSerialize["group_mapping"] = o.GroupMapping + } + return toSerialize, nil +} + +type NullableLdapProviderPatch struct { + value *LdapProviderPatch + isSet bool +} + +func (v NullableLdapProviderPatch) Get() *LdapProviderPatch { + return v.value +} + +func (v *NullableLdapProviderPatch) Set(val *LdapProviderPatch) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPatch(val *LdapProviderPatch) *NullableLdapProviderPatch { + return &NullableLdapProviderPatch{value: val, isSet: true} +} + +func (v NullableLdapProviderPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_patch_connection.go b/idp/model_ldap_provider_patch_connection.go new file mode 100644 index 0000000..2a07e18 --- /dev/null +++ b/idp/model_ldap_provider_patch_connection.go @@ -0,0 +1,342 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPatchConnection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPatchConnection{} + +// LdapProviderPatchConnection struct for LdapProviderPatchConnection +type LdapProviderPatchConnection struct { + Binddn *string `json:"binddn,omitempty"` + ConnectTimeoutSeconds *float32 `json:"connectTimeoutSeconds,omitempty"` + Host *string `json:"host,omitempty"` + OperationTimeoutMs *float32 `json:"operationTimeoutMs,omitempty"` + Password *string `json:"password,omitempty"` + Port *float32 `json:"port,omitempty"` + Validatecert *bool `json:"validatecert,omitempty"` +} + +// NewLdapProviderPatchConnection instantiates a new LdapProviderPatchConnection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPatchConnection() *LdapProviderPatchConnection { + this := LdapProviderPatchConnection{} + return &this +} + +// NewLdapProviderPatchConnectionWithDefaults instantiates a new LdapProviderPatchConnection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPatchConnectionWithDefaults() *LdapProviderPatchConnection { + this := LdapProviderPatchConnection{} + return &this +} + +// GetBinddn returns the Binddn field value if set, zero value otherwise. +func (o *LdapProviderPatchConnection) GetBinddn() string { + if o == nil || IsNil(o.Binddn) { + var ret string + return ret + } + return *o.Binddn +} + +// GetBinddnOk returns a tuple with the Binddn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchConnection) GetBinddnOk() (*string, bool) { + if o == nil || IsNil(o.Binddn) { + return nil, false + } + return o.Binddn, true +} + +// HasBinddn returns a boolean if a field has been set. +func (o *LdapProviderPatchConnection) HasBinddn() bool { + if o != nil && !IsNil(o.Binddn) { + return true + } + + return false +} + +// SetBinddn gets a reference to the given string and assigns it to the Binddn field. +func (o *LdapProviderPatchConnection) SetBinddn(v string) { + o.Binddn = &v +} + +// GetConnectTimeoutSeconds returns the ConnectTimeoutSeconds field value if set, zero value otherwise. +func (o *LdapProviderPatchConnection) GetConnectTimeoutSeconds() float32 { + if o == nil || IsNil(o.ConnectTimeoutSeconds) { + var ret float32 + return ret + } + return *o.ConnectTimeoutSeconds +} + +// GetConnectTimeoutSecondsOk returns a tuple with the ConnectTimeoutSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchConnection) GetConnectTimeoutSecondsOk() (*float32, bool) { + if o == nil || IsNil(o.ConnectTimeoutSeconds) { + return nil, false + } + return o.ConnectTimeoutSeconds, true +} + +// HasConnectTimeoutSeconds returns a boolean if a field has been set. +func (o *LdapProviderPatchConnection) HasConnectTimeoutSeconds() bool { + if o != nil && !IsNil(o.ConnectTimeoutSeconds) { + return true + } + + return false +} + +// SetConnectTimeoutSeconds gets a reference to the given float32 and assigns it to the ConnectTimeoutSeconds field. +func (o *LdapProviderPatchConnection) SetConnectTimeoutSeconds(v float32) { + o.ConnectTimeoutSeconds = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *LdapProviderPatchConnection) GetHost() string { + if o == nil || IsNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchConnection) GetHostOk() (*string, bool) { + if o == nil || IsNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *LdapProviderPatchConnection) HasHost() bool { + if o != nil && !IsNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *LdapProviderPatchConnection) SetHost(v string) { + o.Host = &v +} + +// GetOperationTimeoutMs returns the OperationTimeoutMs field value if set, zero value otherwise. +func (o *LdapProviderPatchConnection) GetOperationTimeoutMs() float32 { + if o == nil || IsNil(o.OperationTimeoutMs) { + var ret float32 + return ret + } + return *o.OperationTimeoutMs +} + +// GetOperationTimeoutMsOk returns a tuple with the OperationTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchConnection) GetOperationTimeoutMsOk() (*float32, bool) { + if o == nil || IsNil(o.OperationTimeoutMs) { + return nil, false + } + return o.OperationTimeoutMs, true +} + +// HasOperationTimeoutMs returns a boolean if a field has been set. +func (o *LdapProviderPatchConnection) HasOperationTimeoutMs() bool { + if o != nil && !IsNil(o.OperationTimeoutMs) { + return true + } + + return false +} + +// SetOperationTimeoutMs gets a reference to the given float32 and assigns it to the OperationTimeoutMs field. +func (o *LdapProviderPatchConnection) SetOperationTimeoutMs(v float32) { + o.OperationTimeoutMs = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *LdapProviderPatchConnection) GetPassword() string { + if o == nil || IsNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchConnection) GetPasswordOk() (*string, bool) { + if o == nil || IsNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *LdapProviderPatchConnection) HasPassword() bool { + if o != nil && !IsNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *LdapProviderPatchConnection) SetPassword(v string) { + o.Password = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *LdapProviderPatchConnection) GetPort() float32 { + if o == nil || IsNil(o.Port) { + var ret float32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchConnection) GetPortOk() (*float32, bool) { + if o == nil || IsNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *LdapProviderPatchConnection) HasPort() bool { + if o != nil && !IsNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given float32 and assigns it to the Port field. +func (o *LdapProviderPatchConnection) SetPort(v float32) { + o.Port = &v +} + +// GetValidatecert returns the Validatecert field value if set, zero value otherwise. +func (o *LdapProviderPatchConnection) GetValidatecert() bool { + if o == nil || IsNil(o.Validatecert) { + var ret bool + return ret + } + return *o.Validatecert +} + +// GetValidatecertOk returns a tuple with the Validatecert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchConnection) GetValidatecertOk() (*bool, bool) { + if o == nil || IsNil(o.Validatecert) { + return nil, false + } + return o.Validatecert, true +} + +// HasValidatecert returns a boolean if a field has been set. +func (o *LdapProviderPatchConnection) HasValidatecert() bool { + if o != nil && !IsNil(o.Validatecert) { + return true + } + + return false +} + +// SetValidatecert gets a reference to the given bool and assigns it to the Validatecert field. +func (o *LdapProviderPatchConnection) SetValidatecert(v bool) { + o.Validatecert = &v +} + +func (o LdapProviderPatchConnection) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPatchConnection) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Binddn) { + toSerialize["binddn"] = o.Binddn + } + if !IsNil(o.ConnectTimeoutSeconds) { + toSerialize["connectTimeoutSeconds"] = o.ConnectTimeoutSeconds + } + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } + if !IsNil(o.OperationTimeoutMs) { + toSerialize["operationTimeoutMs"] = o.OperationTimeoutMs + } + if !IsNil(o.Password) { + toSerialize["password"] = o.Password + } + if !IsNil(o.Port) { + toSerialize["port"] = o.Port + } + if !IsNil(o.Validatecert) { + toSerialize["validatecert"] = o.Validatecert + } + return toSerialize, nil +} + +type NullableLdapProviderPatchConnection struct { + value *LdapProviderPatchConnection + isSet bool +} + +func (v NullableLdapProviderPatchConnection) Get() *LdapProviderPatchConnection { + return v.value +} + +func (v *NullableLdapProviderPatchConnection) Set(val *LdapProviderPatchConnection) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPatchConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPatchConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPatchConnection(val *LdapProviderPatchConnection) *NullableLdapProviderPatchConnection { + return &NullableLdapProviderPatchConnection{value: val, isSet: true} +} + +func (v NullableLdapProviderPatchConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPatchConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_patch_filters.go b/idp/model_ldap_provider_patch_filters.go new file mode 100644 index 0000000..f5d707b --- /dev/null +++ b/idp/model_ldap_provider_patch_filters.go @@ -0,0 +1,162 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPatchFilters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPatchFilters{} + +// LdapProviderPatchFilters struct for LdapProviderPatchFilters +type LdapProviderPatchFilters struct { + GroupsByUsername *string `json:"groupsByUsername,omitempty"` + UserByUsername *string `json:"userByUsername,omitempty"` +} + +// NewLdapProviderPatchFilters instantiates a new LdapProviderPatchFilters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPatchFilters() *LdapProviderPatchFilters { + this := LdapProviderPatchFilters{} + return &this +} + +// NewLdapProviderPatchFiltersWithDefaults instantiates a new LdapProviderPatchFilters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPatchFiltersWithDefaults() *LdapProviderPatchFilters { + this := LdapProviderPatchFilters{} + return &this +} + +// GetGroupsByUsername returns the GroupsByUsername field value if set, zero value otherwise. +func (o *LdapProviderPatchFilters) GetGroupsByUsername() string { + if o == nil || IsNil(o.GroupsByUsername) { + var ret string + return ret + } + return *o.GroupsByUsername +} + +// GetGroupsByUsernameOk returns a tuple with the GroupsByUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchFilters) GetGroupsByUsernameOk() (*string, bool) { + if o == nil || IsNil(o.GroupsByUsername) { + return nil, false + } + return o.GroupsByUsername, true +} + +// HasGroupsByUsername returns a boolean if a field has been set. +func (o *LdapProviderPatchFilters) HasGroupsByUsername() bool { + if o != nil && !IsNil(o.GroupsByUsername) { + return true + } + + return false +} + +// SetGroupsByUsername gets a reference to the given string and assigns it to the GroupsByUsername field. +func (o *LdapProviderPatchFilters) SetGroupsByUsername(v string) { + o.GroupsByUsername = &v +} + +// GetUserByUsername returns the UserByUsername field value if set, zero value otherwise. +func (o *LdapProviderPatchFilters) GetUserByUsername() string { + if o == nil || IsNil(o.UserByUsername) { + var ret string + return ret + } + return *o.UserByUsername +} + +// GetUserByUsernameOk returns a tuple with the UserByUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchFilters) GetUserByUsernameOk() (*string, bool) { + if o == nil || IsNil(o.UserByUsername) { + return nil, false + } + return o.UserByUsername, true +} + +// HasUserByUsername returns a boolean if a field has been set. +func (o *LdapProviderPatchFilters) HasUserByUsername() bool { + if o != nil && !IsNil(o.UserByUsername) { + return true + } + + return false +} + +// SetUserByUsername gets a reference to the given string and assigns it to the UserByUsername field. +func (o *LdapProviderPatchFilters) SetUserByUsername(v string) { + o.UserByUsername = &v +} + +func (o LdapProviderPatchFilters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPatchFilters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GroupsByUsername) { + toSerialize["groupsByUsername"] = o.GroupsByUsername + } + if !IsNil(o.UserByUsername) { + toSerialize["userByUsername"] = o.UserByUsername + } + return toSerialize, nil +} + +type NullableLdapProviderPatchFilters struct { + value *LdapProviderPatchFilters + isSet bool +} + +func (v NullableLdapProviderPatchFilters) Get() *LdapProviderPatchFilters { + return v.value +} + +func (v *NullableLdapProviderPatchFilters) Set(val *LdapProviderPatchFilters) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPatchFilters) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPatchFilters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPatchFilters(val *LdapProviderPatchFilters) *NullableLdapProviderPatchFilters { + return &NullableLdapProviderPatchFilters{value: val, isSet: true} +} + +func (v NullableLdapProviderPatchFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPatchFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_patch_group_mapping.go b/idp/model_ldap_provider_patch_group_mapping.go new file mode 100644 index 0000000..67fac0b --- /dev/null +++ b/idp/model_ldap_provider_patch_group_mapping.go @@ -0,0 +1,162 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPatchGroupMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPatchGroupMapping{} + +// LdapProviderPatchGroupMapping struct for LdapProviderPatchGroupMapping +type LdapProviderPatchGroupMapping struct { + GroupName *string `json:"groupName,omitempty"` + Id *string `json:"id,omitempty"` +} + +// NewLdapProviderPatchGroupMapping instantiates a new LdapProviderPatchGroupMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPatchGroupMapping() *LdapProviderPatchGroupMapping { + this := LdapProviderPatchGroupMapping{} + return &this +} + +// NewLdapProviderPatchGroupMappingWithDefaults instantiates a new LdapProviderPatchGroupMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPatchGroupMappingWithDefaults() *LdapProviderPatchGroupMapping { + this := LdapProviderPatchGroupMapping{} + return &this +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise. +func (o *LdapProviderPatchGroupMapping) GetGroupName() string { + if o == nil || IsNil(o.GroupName) { + var ret string + return ret + } + return *o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchGroupMapping) GetGroupNameOk() (*string, bool) { + if o == nil || IsNil(o.GroupName) { + return nil, false + } + return o.GroupName, true +} + +// HasGroupName returns a boolean if a field has been set. +func (o *LdapProviderPatchGroupMapping) HasGroupName() bool { + if o != nil && !IsNil(o.GroupName) { + return true + } + + return false +} + +// SetGroupName gets a reference to the given string and assigns it to the GroupName field. +func (o *LdapProviderPatchGroupMapping) SetGroupName(v string) { + o.GroupName = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *LdapProviderPatchGroupMapping) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchGroupMapping) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LdapProviderPatchGroupMapping) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *LdapProviderPatchGroupMapping) SetId(v string) { + o.Id = &v +} + +func (o LdapProviderPatchGroupMapping) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPatchGroupMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GroupName) { + toSerialize["groupName"] = o.GroupName + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableLdapProviderPatchGroupMapping struct { + value *LdapProviderPatchGroupMapping + isSet bool +} + +func (v NullableLdapProviderPatchGroupMapping) Get() *LdapProviderPatchGroupMapping { + return v.value +} + +func (v *NullableLdapProviderPatchGroupMapping) Set(val *LdapProviderPatchGroupMapping) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPatchGroupMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPatchGroupMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPatchGroupMapping(val *LdapProviderPatchGroupMapping) *NullableLdapProviderPatchGroupMapping { + return &NullableLdapProviderPatchGroupMapping{value: val, isSet: true} +} + +func (v NullableLdapProviderPatchGroupMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPatchGroupMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_patch_search_bases.go b/idp/model_ldap_provider_patch_search_bases.go new file mode 100644 index 0000000..0f5bc6d --- /dev/null +++ b/idp/model_ldap_provider_patch_search_bases.go @@ -0,0 +1,162 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPatchSearchBases type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPatchSearchBases{} + +// LdapProviderPatchSearchBases struct for LdapProviderPatchSearchBases +type LdapProviderPatchSearchBases struct { + Group *string `json:"group,omitempty"` + User *string `json:"user,omitempty"` +} + +// NewLdapProviderPatchSearchBases instantiates a new LdapProviderPatchSearchBases object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPatchSearchBases() *LdapProviderPatchSearchBases { + this := LdapProviderPatchSearchBases{} + return &this +} + +// NewLdapProviderPatchSearchBasesWithDefaults instantiates a new LdapProviderPatchSearchBases object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPatchSearchBasesWithDefaults() *LdapProviderPatchSearchBases { + this := LdapProviderPatchSearchBases{} + return &this +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *LdapProviderPatchSearchBases) GetGroup() string { + if o == nil || IsNil(o.Group) { + var ret string + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchSearchBases) GetGroupOk() (*string, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *LdapProviderPatchSearchBases) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given string and assigns it to the Group field. +func (o *LdapProviderPatchSearchBases) SetGroup(v string) { + o.Group = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *LdapProviderPatchSearchBases) GetUser() string { + if o == nil || IsNil(o.User) { + var ret string + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchSearchBases) GetUserOk() (*string, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *LdapProviderPatchSearchBases) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given string and assigns it to the User field. +func (o *LdapProviderPatchSearchBases) SetUser(v string) { + o.User = &v +} + +func (o LdapProviderPatchSearchBases) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPatchSearchBases) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + return toSerialize, nil +} + +type NullableLdapProviderPatchSearchBases struct { + value *LdapProviderPatchSearchBases + isSet bool +} + +func (v NullableLdapProviderPatchSearchBases) Get() *LdapProviderPatchSearchBases { + return v.value +} + +func (v *NullableLdapProviderPatchSearchBases) Set(val *LdapProviderPatchSearchBases) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPatchSearchBases) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPatchSearchBases) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPatchSearchBases(val *LdapProviderPatchSearchBases) *NullableLdapProviderPatchSearchBases { + return &NullableLdapProviderPatchSearchBases{value: val, isSet: true} +} + +func (v NullableLdapProviderPatchSearchBases) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPatchSearchBases) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_patch_user_mapping.go b/idp/model_ldap_provider_patch_user_mapping.go new file mode 100644 index 0000000..cbb363c --- /dev/null +++ b/idp/model_ldap_provider_patch_user_mapping.go @@ -0,0 +1,270 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPatchUserMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPatchUserMapping{} + +// LdapProviderPatchUserMapping struct for LdapProviderPatchUserMapping +type LdapProviderPatchUserMapping struct { + Email *string `json:"email,omitempty"` + FirstName *string `json:"firstName,omitempty"` + Id *string `json:"id,omitempty"` + LastName *string `json:"lastName,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewLdapProviderPatchUserMapping instantiates a new LdapProviderPatchUserMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPatchUserMapping() *LdapProviderPatchUserMapping { + this := LdapProviderPatchUserMapping{} + return &this +} + +// NewLdapProviderPatchUserMappingWithDefaults instantiates a new LdapProviderPatchUserMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPatchUserMappingWithDefaults() *LdapProviderPatchUserMapping { + this := LdapProviderPatchUserMapping{} + return &this +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *LdapProviderPatchUserMapping) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchUserMapping) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *LdapProviderPatchUserMapping) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *LdapProviderPatchUserMapping) SetEmail(v string) { + o.Email = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *LdapProviderPatchUserMapping) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchUserMapping) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *LdapProviderPatchUserMapping) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *LdapProviderPatchUserMapping) SetFirstName(v string) { + o.FirstName = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *LdapProviderPatchUserMapping) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchUserMapping) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LdapProviderPatchUserMapping) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *LdapProviderPatchUserMapping) SetId(v string) { + o.Id = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *LdapProviderPatchUserMapping) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchUserMapping) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *LdapProviderPatchUserMapping) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *LdapProviderPatchUserMapping) SetLastName(v string) { + o.LastName = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *LdapProviderPatchUserMapping) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPatchUserMapping) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *LdapProviderPatchUserMapping) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *LdapProviderPatchUserMapping) SetUsername(v string) { + o.Username = &v +} + +func (o LdapProviderPatchUserMapping) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPatchUserMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.FirstName) { + toSerialize["firstName"] = o.FirstName + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.LastName) { + toSerialize["lastName"] = o.LastName + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableLdapProviderPatchUserMapping struct { + value *LdapProviderPatchUserMapping + isSet bool +} + +func (v NullableLdapProviderPatchUserMapping) Get() *LdapProviderPatchUserMapping { + return v.value +} + +func (v *NullableLdapProviderPatchUserMapping) Set(val *LdapProviderPatchUserMapping) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPatchUserMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPatchUserMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPatchUserMapping(val *LdapProviderPatchUserMapping) *NullableLdapProviderPatchUserMapping { + return &NullableLdapProviderPatchUserMapping{value: val, isSet: true} +} + +func (v NullableLdapProviderPatchUserMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPatchUserMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_post_body.go b/idp/model_ldap_provider_post_body.go new file mode 100644 index 0000000..95936e3 --- /dev/null +++ b/idp/model_ldap_provider_post_body.go @@ -0,0 +1,342 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPostBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPostBody{} + +// LdapProviderPostBody struct for LdapProviderPostBody +type LdapProviderPostBody struct { + Name string `json:"name"` + ArcNamespace *string `json:"arc_namespace,omitempty"` + Type LdapProviderPostBodyType `json:"type"` + Connection LdapProviderPostBodyConnection `json:"connection"` + SearchBases LdapProviderPostBodySearchBases `json:"search_bases"` + Dns LdapProviderPostBodySearchBases `json:"dns"` + Filters LdapProviderPostBodyFilters `json:"filters"` + UserMapping LdapProviderPostBodyUserMapping `json:"user_mapping"` + GroupMapping LdapProviderPostBodyGroupMapping `json:"group_mapping"` +} + +// NewLdapProviderPostBody instantiates a new LdapProviderPostBody object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPostBody(name string, type_ LdapProviderPostBodyType, connection LdapProviderPostBodyConnection, searchBases LdapProviderPostBodySearchBases, dns LdapProviderPostBodySearchBases, filters LdapProviderPostBodyFilters, userMapping LdapProviderPostBodyUserMapping, groupMapping LdapProviderPostBodyGroupMapping) *LdapProviderPostBody { + this := LdapProviderPostBody{} + this.Name = name + this.Type = type_ + this.Connection = connection + this.SearchBases = searchBases + this.Dns = dns + this.Filters = filters + this.UserMapping = userMapping + this.GroupMapping = groupMapping + return &this +} + +// NewLdapProviderPostBodyWithDefaults instantiates a new LdapProviderPostBody object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPostBodyWithDefaults() *LdapProviderPostBody { + this := LdapProviderPostBody{} + return &this +} + +// GetName returns the Name field value +func (o *LdapProviderPostBody) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *LdapProviderPostBody) SetName(v string) { + o.Name = v +} + +// GetArcNamespace returns the ArcNamespace field value if set, zero value otherwise. +func (o *LdapProviderPostBody) GetArcNamespace() string { + if o == nil || IsNil(o.ArcNamespace) { + var ret string + return ret + } + return *o.ArcNamespace +} + +// GetArcNamespaceOk returns a tuple with the ArcNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetArcNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.ArcNamespace) { + return nil, false + } + return o.ArcNamespace, true +} + +// HasArcNamespace returns a boolean if a field has been set. +func (o *LdapProviderPostBody) HasArcNamespace() bool { + if o != nil && !IsNil(o.ArcNamespace) { + return true + } + + return false +} + +// SetArcNamespace gets a reference to the given string and assigns it to the ArcNamespace field. +func (o *LdapProviderPostBody) SetArcNamespace(v string) { + o.ArcNamespace = &v +} + +// GetType returns the Type field value +func (o *LdapProviderPostBody) GetType() LdapProviderPostBodyType { + if o == nil { + var ret LdapProviderPostBodyType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetTypeOk() (*LdapProviderPostBodyType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LdapProviderPostBody) SetType(v LdapProviderPostBodyType) { + o.Type = v +} + +// GetConnection returns the Connection field value +func (o *LdapProviderPostBody) GetConnection() LdapProviderPostBodyConnection { + if o == nil { + var ret LdapProviderPostBodyConnection + return ret + } + + return o.Connection +} + +// GetConnectionOk returns a tuple with the Connection field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetConnectionOk() (*LdapProviderPostBodyConnection, bool) { + if o == nil { + return nil, false + } + return &o.Connection, true +} + +// SetConnection sets field value +func (o *LdapProviderPostBody) SetConnection(v LdapProviderPostBodyConnection) { + o.Connection = v +} + +// GetSearchBases returns the SearchBases field value +func (o *LdapProviderPostBody) GetSearchBases() LdapProviderPostBodySearchBases { + if o == nil { + var ret LdapProviderPostBodySearchBases + return ret + } + + return o.SearchBases +} + +// GetSearchBasesOk returns a tuple with the SearchBases field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetSearchBasesOk() (*LdapProviderPostBodySearchBases, bool) { + if o == nil { + return nil, false + } + return &o.SearchBases, true +} + +// SetSearchBases sets field value +func (o *LdapProviderPostBody) SetSearchBases(v LdapProviderPostBodySearchBases) { + o.SearchBases = v +} + +// GetDns returns the Dns field value +func (o *LdapProviderPostBody) GetDns() LdapProviderPostBodySearchBases { + if o == nil { + var ret LdapProviderPostBodySearchBases + return ret + } + + return o.Dns +} + +// GetDnsOk returns a tuple with the Dns field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetDnsOk() (*LdapProviderPostBodySearchBases, bool) { + if o == nil { + return nil, false + } + return &o.Dns, true +} + +// SetDns sets field value +func (o *LdapProviderPostBody) SetDns(v LdapProviderPostBodySearchBases) { + o.Dns = v +} + +// GetFilters returns the Filters field value +func (o *LdapProviderPostBody) GetFilters() LdapProviderPostBodyFilters { + if o == nil { + var ret LdapProviderPostBodyFilters + return ret + } + + return o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetFiltersOk() (*LdapProviderPostBodyFilters, bool) { + if o == nil { + return nil, false + } + return &o.Filters, true +} + +// SetFilters sets field value +func (o *LdapProviderPostBody) SetFilters(v LdapProviderPostBodyFilters) { + o.Filters = v +} + +// GetUserMapping returns the UserMapping field value +func (o *LdapProviderPostBody) GetUserMapping() LdapProviderPostBodyUserMapping { + if o == nil { + var ret LdapProviderPostBodyUserMapping + return ret + } + + return o.UserMapping +} + +// GetUserMappingOk returns a tuple with the UserMapping field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetUserMappingOk() (*LdapProviderPostBodyUserMapping, bool) { + if o == nil { + return nil, false + } + return &o.UserMapping, true +} + +// SetUserMapping sets field value +func (o *LdapProviderPostBody) SetUserMapping(v LdapProviderPostBodyUserMapping) { + o.UserMapping = v +} + +// GetGroupMapping returns the GroupMapping field value +func (o *LdapProviderPostBody) GetGroupMapping() LdapProviderPostBodyGroupMapping { + if o == nil { + var ret LdapProviderPostBodyGroupMapping + return ret + } + + return o.GroupMapping +} + +// GetGroupMappingOk returns a tuple with the GroupMapping field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBody) GetGroupMappingOk() (*LdapProviderPostBodyGroupMapping, bool) { + if o == nil { + return nil, false + } + return &o.GroupMapping, true +} + +// SetGroupMapping sets field value +func (o *LdapProviderPostBody) SetGroupMapping(v LdapProviderPostBodyGroupMapping) { + o.GroupMapping = v +} + +func (o LdapProviderPostBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPostBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.ArcNamespace) { + toSerialize["arc_namespace"] = o.ArcNamespace + } + toSerialize["type"] = o.Type + toSerialize["connection"] = o.Connection + toSerialize["search_bases"] = o.SearchBases + toSerialize["dns"] = o.Dns + toSerialize["filters"] = o.Filters + toSerialize["user_mapping"] = o.UserMapping + toSerialize["group_mapping"] = o.GroupMapping + return toSerialize, nil +} + +type NullableLdapProviderPostBody struct { + value *LdapProviderPostBody + isSet bool +} + +func (v NullableLdapProviderPostBody) Get() *LdapProviderPostBody { + return v.value +} + +func (v *NullableLdapProviderPostBody) Set(val *LdapProviderPostBody) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPostBody) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPostBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPostBody(val *LdapProviderPostBody) *NullableLdapProviderPostBody { + return &NullableLdapProviderPostBody{value: val, isSet: true} +} + +func (v NullableLdapProviderPostBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPostBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_post_body_connection.go b/idp/model_ldap_provider_post_body_connection.go new file mode 100644 index 0000000..1b1c606 --- /dev/null +++ b/idp/model_ldap_provider_post_body_connection.go @@ -0,0 +1,288 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPostBodyConnection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPostBodyConnection{} + +// LdapProviderPostBodyConnection struct for LdapProviderPostBodyConnection +type LdapProviderPostBodyConnection struct { + Binddn string `json:"binddn"` + ConnectTimeoutSeconds float32 `json:"connectTimeoutSeconds"` + Host string `json:"host"` + OperationTimeoutMs float32 `json:"operationTimeoutMs"` + Password string `json:"password"` + Port float32 `json:"port"` + Validatecert *bool `json:"validatecert,omitempty"` +} + +// NewLdapProviderPostBodyConnection instantiates a new LdapProviderPostBodyConnection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPostBodyConnection(binddn string, connectTimeoutSeconds float32, host string, operationTimeoutMs float32, password string, port float32) *LdapProviderPostBodyConnection { + this := LdapProviderPostBodyConnection{} + this.Binddn = binddn + this.ConnectTimeoutSeconds = connectTimeoutSeconds + this.Host = host + this.OperationTimeoutMs = operationTimeoutMs + this.Password = password + this.Port = port + return &this +} + +// NewLdapProviderPostBodyConnectionWithDefaults instantiates a new LdapProviderPostBodyConnection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPostBodyConnectionWithDefaults() *LdapProviderPostBodyConnection { + this := LdapProviderPostBodyConnection{} + return &this +} + +// GetBinddn returns the Binddn field value +func (o *LdapProviderPostBodyConnection) GetBinddn() string { + if o == nil { + var ret string + return ret + } + + return o.Binddn +} + +// GetBinddnOk returns a tuple with the Binddn field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyConnection) GetBinddnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Binddn, true +} + +// SetBinddn sets field value +func (o *LdapProviderPostBodyConnection) SetBinddn(v string) { + o.Binddn = v +} + +// GetConnectTimeoutSeconds returns the ConnectTimeoutSeconds field value +func (o *LdapProviderPostBodyConnection) GetConnectTimeoutSeconds() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.ConnectTimeoutSeconds +} + +// GetConnectTimeoutSecondsOk returns a tuple with the ConnectTimeoutSeconds field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyConnection) GetConnectTimeoutSecondsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.ConnectTimeoutSeconds, true +} + +// SetConnectTimeoutSeconds sets field value +func (o *LdapProviderPostBodyConnection) SetConnectTimeoutSeconds(v float32) { + o.ConnectTimeoutSeconds = v +} + +// GetHost returns the Host field value +func (o *LdapProviderPostBodyConnection) GetHost() string { + if o == nil { + var ret string + return ret + } + + return o.Host +} + +// GetHostOk returns a tuple with the Host field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyConnection) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Host, true +} + +// SetHost sets field value +func (o *LdapProviderPostBodyConnection) SetHost(v string) { + o.Host = v +} + +// GetOperationTimeoutMs returns the OperationTimeoutMs field value +func (o *LdapProviderPostBodyConnection) GetOperationTimeoutMs() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.OperationTimeoutMs +} + +// GetOperationTimeoutMsOk returns a tuple with the OperationTimeoutMs field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyConnection) GetOperationTimeoutMsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.OperationTimeoutMs, true +} + +// SetOperationTimeoutMs sets field value +func (o *LdapProviderPostBodyConnection) SetOperationTimeoutMs(v float32) { + o.OperationTimeoutMs = v +} + +// GetPassword returns the Password field value +func (o *LdapProviderPostBodyConnection) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyConnection) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *LdapProviderPostBodyConnection) SetPassword(v string) { + o.Password = v +} + +// GetPort returns the Port field value +func (o *LdapProviderPostBodyConnection) GetPort() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Port +} + +// GetPortOk returns a tuple with the Port field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyConnection) GetPortOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Port, true +} + +// SetPort sets field value +func (o *LdapProviderPostBodyConnection) SetPort(v float32) { + o.Port = v +} + +// GetValidatecert returns the Validatecert field value if set, zero value otherwise. +func (o *LdapProviderPostBodyConnection) GetValidatecert() bool { + if o == nil || IsNil(o.Validatecert) { + var ret bool + return ret + } + return *o.Validatecert +} + +// GetValidatecertOk returns a tuple with the Validatecert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyConnection) GetValidatecertOk() (*bool, bool) { + if o == nil || IsNil(o.Validatecert) { + return nil, false + } + return o.Validatecert, true +} + +// HasValidatecert returns a boolean if a field has been set. +func (o *LdapProviderPostBodyConnection) HasValidatecert() bool { + if o != nil && !IsNil(o.Validatecert) { + return true + } + + return false +} + +// SetValidatecert gets a reference to the given bool and assigns it to the Validatecert field. +func (o *LdapProviderPostBodyConnection) SetValidatecert(v bool) { + o.Validatecert = &v +} + +func (o LdapProviderPostBodyConnection) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPostBodyConnection) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["binddn"] = o.Binddn + toSerialize["connectTimeoutSeconds"] = o.ConnectTimeoutSeconds + toSerialize["host"] = o.Host + toSerialize["operationTimeoutMs"] = o.OperationTimeoutMs + toSerialize["password"] = o.Password + toSerialize["port"] = o.Port + if !IsNil(o.Validatecert) { + toSerialize["validatecert"] = o.Validatecert + } + return toSerialize, nil +} + +type NullableLdapProviderPostBodyConnection struct { + value *LdapProviderPostBodyConnection + isSet bool +} + +func (v NullableLdapProviderPostBodyConnection) Get() *LdapProviderPostBodyConnection { + return v.value +} + +func (v *NullableLdapProviderPostBodyConnection) Set(val *LdapProviderPostBodyConnection) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPostBodyConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPostBodyConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPostBodyConnection(val *LdapProviderPostBodyConnection) *NullableLdapProviderPostBodyConnection { + return &NullableLdapProviderPostBodyConnection{value: val, isSet: true} +} + +func (v NullableLdapProviderPostBodyConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPostBodyConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_post_body_filters.go b/idp/model_ldap_provider_post_body_filters.go new file mode 100644 index 0000000..447db80 --- /dev/null +++ b/idp/model_ldap_provider_post_body_filters.go @@ -0,0 +1,144 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPostBodyFilters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPostBodyFilters{} + +// LdapProviderPostBodyFilters struct for LdapProviderPostBodyFilters +type LdapProviderPostBodyFilters struct { + GroupsByUsername string `json:"groupsByUsername"` + UserByUsername string `json:"userByUsername"` +} + +// NewLdapProviderPostBodyFilters instantiates a new LdapProviderPostBodyFilters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPostBodyFilters(groupsByUsername string, userByUsername string) *LdapProviderPostBodyFilters { + this := LdapProviderPostBodyFilters{} + this.GroupsByUsername = groupsByUsername + this.UserByUsername = userByUsername + return &this +} + +// NewLdapProviderPostBodyFiltersWithDefaults instantiates a new LdapProviderPostBodyFilters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPostBodyFiltersWithDefaults() *LdapProviderPostBodyFilters { + this := LdapProviderPostBodyFilters{} + return &this +} + +// GetGroupsByUsername returns the GroupsByUsername field value +func (o *LdapProviderPostBodyFilters) GetGroupsByUsername() string { + if o == nil { + var ret string + return ret + } + + return o.GroupsByUsername +} + +// GetGroupsByUsernameOk returns a tuple with the GroupsByUsername field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyFilters) GetGroupsByUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupsByUsername, true +} + +// SetGroupsByUsername sets field value +func (o *LdapProviderPostBodyFilters) SetGroupsByUsername(v string) { + o.GroupsByUsername = v +} + +// GetUserByUsername returns the UserByUsername field value +func (o *LdapProviderPostBodyFilters) GetUserByUsername() string { + if o == nil { + var ret string + return ret + } + + return o.UserByUsername +} + +// GetUserByUsernameOk returns a tuple with the UserByUsername field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyFilters) GetUserByUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserByUsername, true +} + +// SetUserByUsername sets field value +func (o *LdapProviderPostBodyFilters) SetUserByUsername(v string) { + o.UserByUsername = v +} + +func (o LdapProviderPostBodyFilters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPostBodyFilters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["groupsByUsername"] = o.GroupsByUsername + toSerialize["userByUsername"] = o.UserByUsername + return toSerialize, nil +} + +type NullableLdapProviderPostBodyFilters struct { + value *LdapProviderPostBodyFilters + isSet bool +} + +func (v NullableLdapProviderPostBodyFilters) Get() *LdapProviderPostBodyFilters { + return v.value +} + +func (v *NullableLdapProviderPostBodyFilters) Set(val *LdapProviderPostBodyFilters) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPostBodyFilters) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPostBodyFilters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPostBodyFilters(val *LdapProviderPostBodyFilters) *NullableLdapProviderPostBodyFilters { + return &NullableLdapProviderPostBodyFilters{value: val, isSet: true} +} + +func (v NullableLdapProviderPostBodyFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPostBodyFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_post_body_group_mapping.go b/idp/model_ldap_provider_post_body_group_mapping.go new file mode 100644 index 0000000..ef7ea15 --- /dev/null +++ b/idp/model_ldap_provider_post_body_group_mapping.go @@ -0,0 +1,144 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPostBodyGroupMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPostBodyGroupMapping{} + +// LdapProviderPostBodyGroupMapping struct for LdapProviderPostBodyGroupMapping +type LdapProviderPostBodyGroupMapping struct { + GroupName string `json:"groupName"` + Id string `json:"id"` +} + +// NewLdapProviderPostBodyGroupMapping instantiates a new LdapProviderPostBodyGroupMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPostBodyGroupMapping(groupName string, id string) *LdapProviderPostBodyGroupMapping { + this := LdapProviderPostBodyGroupMapping{} + this.GroupName = groupName + this.Id = id + return &this +} + +// NewLdapProviderPostBodyGroupMappingWithDefaults instantiates a new LdapProviderPostBodyGroupMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPostBodyGroupMappingWithDefaults() *LdapProviderPostBodyGroupMapping { + this := LdapProviderPostBodyGroupMapping{} + return &this +} + +// GetGroupName returns the GroupName field value +func (o *LdapProviderPostBodyGroupMapping) GetGroupName() string { + if o == nil { + var ret string + return ret + } + + return o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyGroupMapping) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupName, true +} + +// SetGroupName sets field value +func (o *LdapProviderPostBodyGroupMapping) SetGroupName(v string) { + o.GroupName = v +} + +// GetId returns the Id field value +func (o *LdapProviderPostBodyGroupMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyGroupMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *LdapProviderPostBodyGroupMapping) SetId(v string) { + o.Id = v +} + +func (o LdapProviderPostBodyGroupMapping) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPostBodyGroupMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["groupName"] = o.GroupName + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableLdapProviderPostBodyGroupMapping struct { + value *LdapProviderPostBodyGroupMapping + isSet bool +} + +func (v NullableLdapProviderPostBodyGroupMapping) Get() *LdapProviderPostBodyGroupMapping { + return v.value +} + +func (v *NullableLdapProviderPostBodyGroupMapping) Set(val *LdapProviderPostBodyGroupMapping) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPostBodyGroupMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPostBodyGroupMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPostBodyGroupMapping(val *LdapProviderPostBodyGroupMapping) *NullableLdapProviderPostBodyGroupMapping { + return &NullableLdapProviderPostBodyGroupMapping{value: val, isSet: true} +} + +func (v NullableLdapProviderPostBodyGroupMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPostBodyGroupMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_post_body_search_bases.go b/idp/model_ldap_provider_post_body_search_bases.go new file mode 100644 index 0000000..3cbc619 --- /dev/null +++ b/idp/model_ldap_provider_post_body_search_bases.go @@ -0,0 +1,144 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPostBodySearchBases type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPostBodySearchBases{} + +// LdapProviderPostBodySearchBases struct for LdapProviderPostBodySearchBases +type LdapProviderPostBodySearchBases struct { + Group string `json:"group"` + User string `json:"user"` +} + +// NewLdapProviderPostBodySearchBases instantiates a new LdapProviderPostBodySearchBases object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPostBodySearchBases(group string, user string) *LdapProviderPostBodySearchBases { + this := LdapProviderPostBodySearchBases{} + this.Group = group + this.User = user + return &this +} + +// NewLdapProviderPostBodySearchBasesWithDefaults instantiates a new LdapProviderPostBodySearchBases object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPostBodySearchBasesWithDefaults() *LdapProviderPostBodySearchBases { + this := LdapProviderPostBodySearchBases{} + return &this +} + +// GetGroup returns the Group field value +func (o *LdapProviderPostBodySearchBases) GetGroup() string { + if o == nil { + var ret string + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodySearchBases) GetGroupOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *LdapProviderPostBodySearchBases) SetGroup(v string) { + o.Group = v +} + +// GetUser returns the User field value +func (o *LdapProviderPostBodySearchBases) GetUser() string { + if o == nil { + var ret string + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodySearchBases) GetUserOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *LdapProviderPostBodySearchBases) SetUser(v string) { + o.User = v +} + +func (o LdapProviderPostBodySearchBases) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPostBodySearchBases) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + toSerialize["user"] = o.User + return toSerialize, nil +} + +type NullableLdapProviderPostBodySearchBases struct { + value *LdapProviderPostBodySearchBases + isSet bool +} + +func (v NullableLdapProviderPostBodySearchBases) Get() *LdapProviderPostBodySearchBases { + return v.value +} + +func (v *NullableLdapProviderPostBodySearchBases) Set(val *LdapProviderPostBodySearchBases) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPostBodySearchBases) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPostBodySearchBases) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPostBodySearchBases(val *LdapProviderPostBodySearchBases) *NullableLdapProviderPostBodySearchBases { + return &NullableLdapProviderPostBodySearchBases{value: val, isSet: true} +} + +func (v NullableLdapProviderPostBodySearchBases) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPostBodySearchBases) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_post_body_type.go b/idp/model_ldap_provider_post_body_type.go new file mode 100644 index 0000000..4bc66bc --- /dev/null +++ b/idp/model_ldap_provider_post_body_type.go @@ -0,0 +1,153 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPostBodyType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPostBodyType{} + +// LdapProviderPostBodyType struct for LdapProviderPostBodyType +type LdapProviderPostBodyType struct { + Description *string `json:"description,omitempty"` + Name string `json:"name"` +} + +// NewLdapProviderPostBodyType instantiates a new LdapProviderPostBodyType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPostBodyType(name string) *LdapProviderPostBodyType { + this := LdapProviderPostBodyType{} + this.Name = name + return &this +} + +// NewLdapProviderPostBodyTypeWithDefaults instantiates a new LdapProviderPostBodyType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPostBodyTypeWithDefaults() *LdapProviderPostBodyType { + this := LdapProviderPostBodyType{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *LdapProviderPostBodyType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *LdapProviderPostBodyType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *LdapProviderPostBodyType) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *LdapProviderPostBodyType) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *LdapProviderPostBodyType) SetName(v string) { + o.Name = v +} + +func (o LdapProviderPostBodyType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPostBodyType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableLdapProviderPostBodyType struct { + value *LdapProviderPostBodyType + isSet bool +} + +func (v NullableLdapProviderPostBodyType) Get() *LdapProviderPostBodyType { + return v.value +} + +func (v *NullableLdapProviderPostBodyType) Set(val *LdapProviderPostBodyType) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPostBodyType) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPostBodyType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPostBodyType(val *LdapProviderPostBodyType) *NullableLdapProviderPostBodyType { + return &NullableLdapProviderPostBodyType{value: val, isSet: true} +} + +func (v NullableLdapProviderPostBodyType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPostBodyType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_ldap_provider_post_body_user_mapping.go b/idp/model_ldap_provider_post_body_user_mapping.go new file mode 100644 index 0000000..80f0c95 --- /dev/null +++ b/idp/model_ldap_provider_post_body_user_mapping.go @@ -0,0 +1,225 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the LdapProviderPostBodyUserMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LdapProviderPostBodyUserMapping{} + +// LdapProviderPostBodyUserMapping struct for LdapProviderPostBodyUserMapping +type LdapProviderPostBodyUserMapping struct { + Email string `json:"email"` + FirstName string `json:"firstName"` + Id string `json:"id"` + LastName string `json:"lastName"` + Username string `json:"username"` +} + +// NewLdapProviderPostBodyUserMapping instantiates a new LdapProviderPostBodyUserMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLdapProviderPostBodyUserMapping(email string, firstName string, id string, lastName string, username string) *LdapProviderPostBodyUserMapping { + this := LdapProviderPostBodyUserMapping{} + this.Email = email + this.FirstName = firstName + this.Id = id + this.LastName = lastName + this.Username = username + return &this +} + +// NewLdapProviderPostBodyUserMappingWithDefaults instantiates a new LdapProviderPostBodyUserMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLdapProviderPostBodyUserMappingWithDefaults() *LdapProviderPostBodyUserMapping { + this := LdapProviderPostBodyUserMapping{} + return &this +} + +// GetEmail returns the Email field value +func (o *LdapProviderPostBodyUserMapping) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyUserMapping) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *LdapProviderPostBodyUserMapping) SetEmail(v string) { + o.Email = v +} + +// GetFirstName returns the FirstName field value +func (o *LdapProviderPostBodyUserMapping) GetFirstName() string { + if o == nil { + var ret string + return ret + } + + return o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyUserMapping) GetFirstNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FirstName, true +} + +// SetFirstName sets field value +func (o *LdapProviderPostBodyUserMapping) SetFirstName(v string) { + o.FirstName = v +} + +// GetId returns the Id field value +func (o *LdapProviderPostBodyUserMapping) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyUserMapping) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *LdapProviderPostBodyUserMapping) SetId(v string) { + o.Id = v +} + +// GetLastName returns the LastName field value +func (o *LdapProviderPostBodyUserMapping) GetLastName() string { + if o == nil { + var ret string + return ret + } + + return o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyUserMapping) GetLastNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.LastName, true +} + +// SetLastName sets field value +func (o *LdapProviderPostBodyUserMapping) SetLastName(v string) { + o.LastName = v +} + +// GetUsername returns the Username field value +func (o *LdapProviderPostBodyUserMapping) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *LdapProviderPostBodyUserMapping) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *LdapProviderPostBodyUserMapping) SetUsername(v string) { + o.Username = v +} + +func (o LdapProviderPostBodyUserMapping) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LdapProviderPostBodyUserMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + toSerialize["firstName"] = o.FirstName + toSerialize["id"] = o.Id + toSerialize["lastName"] = o.LastName + toSerialize["username"] = o.Username + return toSerialize, nil +} + +type NullableLdapProviderPostBodyUserMapping struct { + value *LdapProviderPostBodyUserMapping + isSet bool +} + +func (v NullableLdapProviderPostBodyUserMapping) Get() *LdapProviderPostBodyUserMapping { + return v.value +} + +func (v *NullableLdapProviderPostBodyUserMapping) Set(val *LdapProviderPostBodyUserMapping) { + v.value = val + v.isSet = true +} + +func (v NullableLdapProviderPostBodyUserMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableLdapProviderPostBodyUserMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLdapProviderPostBodyUserMapping(val *LdapProviderPostBodyUserMapping) *NullableLdapProviderPostBodyUserMapping { + return &NullableLdapProviderPostBodyUserMapping{value: val, isSet: true} +} + +func (v NullableLdapProviderPostBodyUserMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLdapProviderPostBodyUserMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_dynamic_post_body.go b/idp/model_open_id_provider_dynamic_post_body.go new file mode 100644 index 0000000..dc45dac --- /dev/null +++ b/idp/model_open_id_provider_dynamic_post_body.go @@ -0,0 +1,279 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderDynamicPostBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderDynamicPostBody{} + +// OpenIDProviderDynamicPostBody struct for OpenIDProviderDynamicPostBody +type OpenIDProviderDynamicPostBody struct { + Name string `json:"name"` + ArcNamespace *string `json:"arc_namespace,omitempty"` + Type OpenIDProviderManualPostBodyType `json:"type"` + OidcProvider OpenIDProviderDynamicPostBodyOidcProvider `json:"oidc_provider"` + AllowUntrustedCertificates *bool `json:"allow_untrusted_certificates,omitempty"` + LoginDisabled *bool `json:"login_disabled,omitempty"` +} + +// NewOpenIDProviderDynamicPostBody instantiates a new OpenIDProviderDynamicPostBody object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderDynamicPostBody(name string, type_ OpenIDProviderManualPostBodyType, oidcProvider OpenIDProviderDynamicPostBodyOidcProvider) *OpenIDProviderDynamicPostBody { + this := OpenIDProviderDynamicPostBody{} + this.Name = name + this.Type = type_ + this.OidcProvider = oidcProvider + return &this +} + +// NewOpenIDProviderDynamicPostBodyWithDefaults instantiates a new OpenIDProviderDynamicPostBody object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderDynamicPostBodyWithDefaults() *OpenIDProviderDynamicPostBody { + this := OpenIDProviderDynamicPostBody{} + return &this +} + +// GetName returns the Name field value +func (o *OpenIDProviderDynamicPostBody) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBody) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *OpenIDProviderDynamicPostBody) SetName(v string) { + o.Name = v +} + +// GetArcNamespace returns the ArcNamespace field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBody) GetArcNamespace() string { + if o == nil || IsNil(o.ArcNamespace) { + var ret string + return ret + } + return *o.ArcNamespace +} + +// GetArcNamespaceOk returns a tuple with the ArcNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBody) GetArcNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.ArcNamespace) { + return nil, false + } + return o.ArcNamespace, true +} + +// HasArcNamespace returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBody) HasArcNamespace() bool { + if o != nil && !IsNil(o.ArcNamespace) { + return true + } + + return false +} + +// SetArcNamespace gets a reference to the given string and assigns it to the ArcNamespace field. +func (o *OpenIDProviderDynamicPostBody) SetArcNamespace(v string) { + o.ArcNamespace = &v +} + +// GetType returns the Type field value +func (o *OpenIDProviderDynamicPostBody) GetType() OpenIDProviderManualPostBodyType { + if o == nil { + var ret OpenIDProviderManualPostBodyType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBody) GetTypeOk() (*OpenIDProviderManualPostBodyType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OpenIDProviderDynamicPostBody) SetType(v OpenIDProviderManualPostBodyType) { + o.Type = v +} + +// GetOidcProvider returns the OidcProvider field value +func (o *OpenIDProviderDynamicPostBody) GetOidcProvider() OpenIDProviderDynamicPostBodyOidcProvider { + if o == nil { + var ret OpenIDProviderDynamicPostBodyOidcProvider + return ret + } + + return o.OidcProvider +} + +// GetOidcProviderOk returns a tuple with the OidcProvider field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBody) GetOidcProviderOk() (*OpenIDProviderDynamicPostBodyOidcProvider, bool) { + if o == nil { + return nil, false + } + return &o.OidcProvider, true +} + +// SetOidcProvider sets field value +func (o *OpenIDProviderDynamicPostBody) SetOidcProvider(v OpenIDProviderDynamicPostBodyOidcProvider) { + o.OidcProvider = v +} + +// GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBody) GetAllowUntrustedCertificates() bool { + if o == nil || IsNil(o.AllowUntrustedCertificates) { + var ret bool + return ret + } + return *o.AllowUntrustedCertificates +} + +// GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBody) GetAllowUntrustedCertificatesOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUntrustedCertificates) { + return nil, false + } + return o.AllowUntrustedCertificates, true +} + +// HasAllowUntrustedCertificates returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBody) HasAllowUntrustedCertificates() bool { + if o != nil && !IsNil(o.AllowUntrustedCertificates) { + return true + } + + return false +} + +// SetAllowUntrustedCertificates gets a reference to the given bool and assigns it to the AllowUntrustedCertificates field. +func (o *OpenIDProviderDynamicPostBody) SetAllowUntrustedCertificates(v bool) { + o.AllowUntrustedCertificates = &v +} + +// GetLoginDisabled returns the LoginDisabled field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBody) GetLoginDisabled() bool { + if o == nil || IsNil(o.LoginDisabled) { + var ret bool + return ret + } + return *o.LoginDisabled +} + +// GetLoginDisabledOk returns a tuple with the LoginDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBody) GetLoginDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.LoginDisabled) { + return nil, false + } + return o.LoginDisabled, true +} + +// HasLoginDisabled returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBody) HasLoginDisabled() bool { + if o != nil && !IsNil(o.LoginDisabled) { + return true + } + + return false +} + +// SetLoginDisabled gets a reference to the given bool and assigns it to the LoginDisabled field. +func (o *OpenIDProviderDynamicPostBody) SetLoginDisabled(v bool) { + o.LoginDisabled = &v +} + +func (o OpenIDProviderDynamicPostBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderDynamicPostBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.ArcNamespace) { + toSerialize["arc_namespace"] = o.ArcNamespace + } + toSerialize["type"] = o.Type + toSerialize["oidc_provider"] = o.OidcProvider + if !IsNil(o.AllowUntrustedCertificates) { + toSerialize["allow_untrusted_certificates"] = o.AllowUntrustedCertificates + } + if !IsNil(o.LoginDisabled) { + toSerialize["login_disabled"] = o.LoginDisabled + } + return toSerialize, nil +} + +type NullableOpenIDProviderDynamicPostBody struct { + value *OpenIDProviderDynamicPostBody + isSet bool +} + +func (v NullableOpenIDProviderDynamicPostBody) Get() *OpenIDProviderDynamicPostBody { + return v.value +} + +func (v *NullableOpenIDProviderDynamicPostBody) Set(val *OpenIDProviderDynamicPostBody) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderDynamicPostBody) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderDynamicPostBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderDynamicPostBody(val *OpenIDProviderDynamicPostBody) *NullableOpenIDProviderDynamicPostBody { + return &NullableOpenIDProviderDynamicPostBody{value: val, isSet: true} +} + +func (v NullableOpenIDProviderDynamicPostBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderDynamicPostBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_dynamic_post_body_oidc_provider.go b/idp/model_open_id_provider_dynamic_post_body_oidc_provider.go new file mode 100644 index 0000000..41c30f7 --- /dev/null +++ b/idp/model_open_id_provider_dynamic_post_body_oidc_provider.go @@ -0,0 +1,252 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderDynamicPostBodyOidcProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderDynamicPostBodyOidcProvider{} + +// OpenIDProviderDynamicPostBodyOidcProvider struct for OpenIDProviderDynamicPostBodyOidcProvider +type OpenIDProviderDynamicPostBodyOidcProvider struct { + Client OpenIDProviderDynamicPostBodyOidcProviderClient `json:"client"` + Issuer *string `json:"issuer,omitempty"` + Urls OpenIDProviderManualPostBodyOidcProviderUrls `json:"urls"` + GroupScope *string `json:"group_scope,omitempty"` + ClaimsMapping *OpenIDProviderManualPostBodyOidcProviderClaimsMapping `json:"claims_mapping,omitempty"` +} + +// NewOpenIDProviderDynamicPostBodyOidcProvider instantiates a new OpenIDProviderDynamicPostBodyOidcProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderDynamicPostBodyOidcProvider(client OpenIDProviderDynamicPostBodyOidcProviderClient, urls OpenIDProviderManualPostBodyOidcProviderUrls) *OpenIDProviderDynamicPostBodyOidcProvider { + this := OpenIDProviderDynamicPostBodyOidcProvider{} + this.Client = client + this.Urls = urls + return &this +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderDynamicPostBodyOidcProviderWithDefaults() *OpenIDProviderDynamicPostBodyOidcProvider { + this := OpenIDProviderDynamicPostBodyOidcProvider{} + return &this +} + +// GetClient returns the Client field value +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetClient() OpenIDProviderDynamicPostBodyOidcProviderClient { + if o == nil { + var ret OpenIDProviderDynamicPostBodyOidcProviderClient + return ret + } + + return o.Client +} + +// GetClientOk returns a tuple with the Client field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetClientOk() (*OpenIDProviderDynamicPostBodyOidcProviderClient, bool) { + if o == nil { + return nil, false + } + return &o.Client, true +} + +// SetClient sets field value +func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetClient(v OpenIDProviderDynamicPostBodyOidcProviderClient) { + o.Client = v +} + +// GetIssuer returns the Issuer field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetIssuer() string { + if o == nil || IsNil(o.Issuer) { + var ret string + return ret + } + return *o.Issuer +} + +// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetIssuerOk() (*string, bool) { + if o == nil || IsNil(o.Issuer) { + return nil, false + } + return o.Issuer, true +} + +// HasIssuer returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) HasIssuer() bool { + if o != nil && !IsNil(o.Issuer) { + return true + } + + return false +} + +// SetIssuer gets a reference to the given string and assigns it to the Issuer field. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetIssuer(v string) { + o.Issuer = &v +} + +// GetUrls returns the Urls field value +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetUrls() OpenIDProviderManualPostBodyOidcProviderUrls { + if o == nil { + var ret OpenIDProviderManualPostBodyOidcProviderUrls + return ret + } + + return o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetUrlsOk() (*OpenIDProviderManualPostBodyOidcProviderUrls, bool) { + if o == nil { + return nil, false + } + return &o.Urls, true +} + +// SetUrls sets field value +func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetUrls(v OpenIDProviderManualPostBodyOidcProviderUrls) { + o.Urls = v +} + +// GetGroupScope returns the GroupScope field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetGroupScope() string { + if o == nil || IsNil(o.GroupScope) { + var ret string + return ret + } + return *o.GroupScope +} + +// GetGroupScopeOk returns a tuple with the GroupScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetGroupScopeOk() (*string, bool) { + if o == nil || IsNil(o.GroupScope) { + return nil, false + } + return o.GroupScope, true +} + +// HasGroupScope returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) HasGroupScope() bool { + if o != nil && !IsNil(o.GroupScope) { + return true + } + + return false +} + +// SetGroupScope gets a reference to the given string and assigns it to the GroupScope field. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetGroupScope(v string) { + o.GroupScope = &v +} + +// GetClaimsMapping returns the ClaimsMapping field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetClaimsMapping() OpenIDProviderManualPostBodyOidcProviderClaimsMapping { + if o == nil || IsNil(o.ClaimsMapping) { + var ret OpenIDProviderManualPostBodyOidcProviderClaimsMapping + return ret + } + return *o.ClaimsMapping +} + +// GetClaimsMappingOk returns a tuple with the ClaimsMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) GetClaimsMappingOk() (*OpenIDProviderManualPostBodyOidcProviderClaimsMapping, bool) { + if o == nil || IsNil(o.ClaimsMapping) { + return nil, false + } + return o.ClaimsMapping, true +} + +// HasClaimsMapping returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) HasClaimsMapping() bool { + if o != nil && !IsNil(o.ClaimsMapping) { + return true + } + + return false +} + +// SetClaimsMapping gets a reference to the given OpenIDProviderManualPostBodyOidcProviderClaimsMapping and assigns it to the ClaimsMapping field. +func (o *OpenIDProviderDynamicPostBodyOidcProvider) SetClaimsMapping(v OpenIDProviderManualPostBodyOidcProviderClaimsMapping) { + o.ClaimsMapping = &v +} + +func (o OpenIDProviderDynamicPostBodyOidcProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderDynamicPostBodyOidcProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["client"] = o.Client + if !IsNil(o.Issuer) { + toSerialize["issuer"] = o.Issuer + } + toSerialize["urls"] = o.Urls + if !IsNil(o.GroupScope) { + toSerialize["group_scope"] = o.GroupScope + } + if !IsNil(o.ClaimsMapping) { + toSerialize["claims_mapping"] = o.ClaimsMapping + } + return toSerialize, nil +} + +type NullableOpenIDProviderDynamicPostBodyOidcProvider struct { + value *OpenIDProviderDynamicPostBodyOidcProvider + isSet bool +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProvider) Get() *OpenIDProviderDynamicPostBodyOidcProvider { + return v.value +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProvider) Set(val *OpenIDProviderDynamicPostBodyOidcProvider) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderDynamicPostBodyOidcProvider(val *OpenIDProviderDynamicPostBodyOidcProvider) *NullableOpenIDProviderDynamicPostBodyOidcProvider { + return &NullableOpenIDProviderDynamicPostBodyOidcProvider{value: val, isSet: true} +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client.go b/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client.go new file mode 100644 index 0000000..ff8132f --- /dev/null +++ b/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client.go @@ -0,0 +1,189 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderDynamicPostBodyOidcProviderClient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderDynamicPostBodyOidcProviderClient{} + +// OpenIDProviderDynamicPostBodyOidcProviderClient struct for OpenIDProviderDynamicPostBodyOidcProviderClient +type OpenIDProviderDynamicPostBodyOidcProviderClient struct { + Urls OpenIDProviderDynamicPostBodyOidcProviderClientUrls `json:"urls"` + Registration *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration `json:"registration,omitempty"` + Metadata *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata `json:"metadata,omitempty"` +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderClient instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderDynamicPostBodyOidcProviderClient(urls OpenIDProviderDynamicPostBodyOidcProviderClientUrls) *OpenIDProviderDynamicPostBodyOidcProviderClient { + this := OpenIDProviderDynamicPostBodyOidcProviderClient{} + this.Urls = urls + return &this +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderClientWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderDynamicPostBodyOidcProviderClientWithDefaults() *OpenIDProviderDynamicPostBodyOidcProviderClient { + this := OpenIDProviderDynamicPostBodyOidcProviderClient{} + return &this +} + +// GetUrls returns the Urls field value +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetUrls() OpenIDProviderDynamicPostBodyOidcProviderClientUrls { + if o == nil { + var ret OpenIDProviderDynamicPostBodyOidcProviderClientUrls + return ret + } + + return o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetUrlsOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientUrls, bool) { + if o == nil { + return nil, false + } + return &o.Urls, true +} + +// SetUrls sets field value +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) SetUrls(v OpenIDProviderDynamicPostBodyOidcProviderClientUrls) { + o.Urls = v +} + +// GetRegistration returns the Registration field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetRegistration() OpenIDProviderDynamicPostBodyOidcProviderClientRegistration { + if o == nil || IsNil(o.Registration) { + var ret OpenIDProviderDynamicPostBodyOidcProviderClientRegistration + return ret + } + return *o.Registration +} + +// GetRegistrationOk returns a tuple with the Registration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetRegistrationOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientRegistration, bool) { + if o == nil || IsNil(o.Registration) { + return nil, false + } + return o.Registration, true +} + +// HasRegistration returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) HasRegistration() bool { + if o != nil && !IsNil(o.Registration) { + return true + } + + return false +} + +// SetRegistration gets a reference to the given OpenIDProviderDynamicPostBodyOidcProviderClientRegistration and assigns it to the Registration field. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) SetRegistration(v OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) { + o.Registration = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetMetadata() OpenIDProviderDynamicPostBodyOidcProviderClientMetadata { + if o == nil || IsNil(o.Metadata) { + var ret OpenIDProviderDynamicPostBodyOidcProviderClientMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) GetMetadataOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given OpenIDProviderDynamicPostBodyOidcProviderClientMetadata and assigns it to the Metadata field. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClient) SetMetadata(v OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) { + o.Metadata = &v +} + +func (o OpenIDProviderDynamicPostBodyOidcProviderClient) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderDynamicPostBodyOidcProviderClient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["urls"] = o.Urls + if !IsNil(o.Registration) { + toSerialize["registration"] = o.Registration + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableOpenIDProviderDynamicPostBodyOidcProviderClient struct { + value *OpenIDProviderDynamicPostBodyOidcProviderClient + isSet bool +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClient) Get() *OpenIDProviderDynamicPostBodyOidcProviderClient { + return v.value +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClient) Set(val *OpenIDProviderDynamicPostBodyOidcProviderClient) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClient) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderDynamicPostBodyOidcProviderClient(val *OpenIDProviderDynamicPostBodyOidcProviderClient) *NullableOpenIDProviderDynamicPostBodyOidcProviderClient { + return &NullableOpenIDProviderDynamicPostBodyOidcProviderClient{value: val, isSet: true} +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_metadata.go b/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_metadata.go new file mode 100644 index 0000000..4ddcf40 --- /dev/null +++ b/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_metadata.go @@ -0,0 +1,126 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderDynamicPostBodyOidcProviderClientMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderDynamicPostBodyOidcProviderClientMetadata{} + +// OpenIDProviderDynamicPostBodyOidcProviderClientMetadata struct for OpenIDProviderDynamicPostBodyOidcProviderClientMetadata +type OpenIDProviderDynamicPostBodyOidcProviderClientMetadata struct { + Name *string `json:"name,omitempty"` +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadata instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadata() *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata { + this := OpenIDProviderDynamicPostBodyOidcProviderClientMetadata{} + return &this +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadataWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderDynamicPostBodyOidcProviderClientMetadataWithDefaults() *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata { + this := OpenIDProviderDynamicPostBodyOidcProviderClientMetadata{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) SetName(v string) { + o.Name = &v +} + +func (o OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata struct { + value *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata + isSet bool +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata) Get() *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata { + return v.value +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata) Set(val *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata(val *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) *NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata { + return &NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata{value: val, isSet: true} +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_registration.go b/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_registration.go new file mode 100644 index 0000000..723c0e6 --- /dev/null +++ b/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_registration.go @@ -0,0 +1,117 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderDynamicPostBodyOidcProviderClientRegistration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderDynamicPostBodyOidcProviderClientRegistration{} + +// OpenIDProviderDynamicPostBodyOidcProviderClientRegistration struct for OpenIDProviderDynamicPostBodyOidcProviderClientRegistration +type OpenIDProviderDynamicPostBodyOidcProviderClientRegistration struct { + Authorization string `json:"authorization"` +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistration instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientRegistration object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistration(authorization string) *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration { + this := OpenIDProviderDynamicPostBodyOidcProviderClientRegistration{} + this.Authorization = authorization + return &this +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistrationWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientRegistration object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderDynamicPostBodyOidcProviderClientRegistrationWithDefaults() *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration { + this := OpenIDProviderDynamicPostBodyOidcProviderClientRegistration{} + return &this +} + +// GetAuthorization returns the Authorization field value +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) GetAuthorization() string { + if o == nil { + var ret string + return ret + } + + return o.Authorization +} + +// GetAuthorizationOk returns a tuple with the Authorization field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) GetAuthorizationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Authorization, true +} + +// SetAuthorization sets field value +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) SetAuthorization(v string) { + o.Authorization = v +} + +func (o OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["authorization"] = o.Authorization + return toSerialize, nil +} + +type NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration struct { + value *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration + isSet bool +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration) Get() *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration { + return v.value +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration) Set(val *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration(val *OpenIDProviderDynamicPostBodyOidcProviderClientRegistration) *NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration { + return &NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration{value: val, isSet: true} +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientRegistration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_urls.go b/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_urls.go new file mode 100644 index 0000000..c9fb33f --- /dev/null +++ b/idp/model_open_id_provider_dynamic_post_body_oidc_provider_client_urls.go @@ -0,0 +1,117 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderDynamicPostBodyOidcProviderClientUrls type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderDynamicPostBodyOidcProviderClientUrls{} + +// OpenIDProviderDynamicPostBodyOidcProviderClientUrls struct for OpenIDProviderDynamicPostBodyOidcProviderClientUrls +type OpenIDProviderDynamicPostBodyOidcProviderClientUrls struct { + Register string `json:"register"` +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderClientUrls instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientUrls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderDynamicPostBodyOidcProviderClientUrls(register string) *OpenIDProviderDynamicPostBodyOidcProviderClientUrls { + this := OpenIDProviderDynamicPostBodyOidcProviderClientUrls{} + this.Register = register + return &this +} + +// NewOpenIDProviderDynamicPostBodyOidcProviderClientUrlsWithDefaults instantiates a new OpenIDProviderDynamicPostBodyOidcProviderClientUrls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderDynamicPostBodyOidcProviderClientUrlsWithDefaults() *OpenIDProviderDynamicPostBodyOidcProviderClientUrls { + this := OpenIDProviderDynamicPostBodyOidcProviderClientUrls{} + return &this +} + +// GetRegister returns the Register field value +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientUrls) GetRegister() string { + if o == nil { + var ret string + return ret + } + + return o.Register +} + +// GetRegisterOk returns a tuple with the Register field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientUrls) GetRegisterOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Register, true +} + +// SetRegister sets field value +func (o *OpenIDProviderDynamicPostBodyOidcProviderClientUrls) SetRegister(v string) { + o.Register = v +} + +func (o OpenIDProviderDynamicPostBodyOidcProviderClientUrls) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderDynamicPostBodyOidcProviderClientUrls) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["register"] = o.Register + return toSerialize, nil +} + +type NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls struct { + value *OpenIDProviderDynamicPostBodyOidcProviderClientUrls + isSet bool +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls) Get() *OpenIDProviderDynamicPostBodyOidcProviderClientUrls { + return v.value +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls) Set(val *OpenIDProviderDynamicPostBodyOidcProviderClientUrls) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls(val *OpenIDProviderDynamicPostBodyOidcProviderClientUrls) *NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls { + return &NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls{value: val, isSet: true} +} + +func (v NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderDynamicPostBodyOidcProviderClientUrls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_get.go b/idp/model_open_id_provider_get.go new file mode 100644 index 0000000..07e9bdc --- /dev/null +++ b/idp/model_open_id_provider_get.go @@ -0,0 +1,315 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderGet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderGet{} + +// OpenIDProviderGet struct for OpenIDProviderGet +type OpenIDProviderGet struct { + OidcProvider OpenIDProviderGetOidcProvider `json:"oidc_provider"` + Name string `json:"name"` + OrgId string `json:"org_id"` + ServiceProvider OpenIDProviderGetServiceProvider `json:"service_provider"` + LoginDisabled *bool `json:"login_disabled,omitempty"` + AllowUntrustedCertificates bool `json:"allow_untrusted_certificates"` + Type OpenIDProviderManualPostBodyType `json:"type"` + ProviderId string `json:"provider_id"` +} + +// NewOpenIDProviderGet instantiates a new OpenIDProviderGet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderGet(oidcProvider OpenIDProviderGetOidcProvider, name string, orgId string, serviceProvider OpenIDProviderGetServiceProvider, allowUntrustedCertificates bool, type_ OpenIDProviderManualPostBodyType, providerId string) *OpenIDProviderGet { + this := OpenIDProviderGet{} + this.OidcProvider = oidcProvider + this.Name = name + this.OrgId = orgId + this.ServiceProvider = serviceProvider + this.AllowUntrustedCertificates = allowUntrustedCertificates + this.Type = type_ + this.ProviderId = providerId + return &this +} + +// NewOpenIDProviderGetWithDefaults instantiates a new OpenIDProviderGet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderGetWithDefaults() *OpenIDProviderGet { + this := OpenIDProviderGet{} + return &this +} + +// GetOidcProvider returns the OidcProvider field value +func (o *OpenIDProviderGet) GetOidcProvider() OpenIDProviderGetOidcProvider { + if o == nil { + var ret OpenIDProviderGetOidcProvider + return ret + } + + return o.OidcProvider +} + +// GetOidcProviderOk returns a tuple with the OidcProvider field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGet) GetOidcProviderOk() (*OpenIDProviderGetOidcProvider, bool) { + if o == nil { + return nil, false + } + return &o.OidcProvider, true +} + +// SetOidcProvider sets field value +func (o *OpenIDProviderGet) SetOidcProvider(v OpenIDProviderGetOidcProvider) { + o.OidcProvider = v +} + +// GetName returns the Name field value +func (o *OpenIDProviderGet) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *OpenIDProviderGet) SetName(v string) { + o.Name = v +} + +// GetOrgId returns the OrgId field value +func (o *OpenIDProviderGet) GetOrgId() string { + if o == nil { + var ret string + return ret + } + + return o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGet) GetOrgIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgId, true +} + +// SetOrgId sets field value +func (o *OpenIDProviderGet) SetOrgId(v string) { + o.OrgId = v +} + +// GetServiceProvider returns the ServiceProvider field value +func (o *OpenIDProviderGet) GetServiceProvider() OpenIDProviderGetServiceProvider { + if o == nil { + var ret OpenIDProviderGetServiceProvider + return ret + } + + return o.ServiceProvider +} + +// GetServiceProviderOk returns a tuple with the ServiceProvider field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGet) GetServiceProviderOk() (*OpenIDProviderGetServiceProvider, bool) { + if o == nil { + return nil, false + } + return &o.ServiceProvider, true +} + +// SetServiceProvider sets field value +func (o *OpenIDProviderGet) SetServiceProvider(v OpenIDProviderGetServiceProvider) { + o.ServiceProvider = v +} + +// GetLoginDisabled returns the LoginDisabled field value if set, zero value otherwise. +func (o *OpenIDProviderGet) GetLoginDisabled() bool { + if o == nil || IsNil(o.LoginDisabled) { + var ret bool + return ret + } + return *o.LoginDisabled +} + +// GetLoginDisabledOk returns a tuple with the LoginDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGet) GetLoginDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.LoginDisabled) { + return nil, false + } + return o.LoginDisabled, true +} + +// HasLoginDisabled returns a boolean if a field has been set. +func (o *OpenIDProviderGet) HasLoginDisabled() bool { + if o != nil && !IsNil(o.LoginDisabled) { + return true + } + + return false +} + +// SetLoginDisabled gets a reference to the given bool and assigns it to the LoginDisabled field. +func (o *OpenIDProviderGet) SetLoginDisabled(v bool) { + o.LoginDisabled = &v +} + +// GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field value +func (o *OpenIDProviderGet) GetAllowUntrustedCertificates() bool { + if o == nil { + var ret bool + return ret + } + + return o.AllowUntrustedCertificates +} + +// GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGet) GetAllowUntrustedCertificatesOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AllowUntrustedCertificates, true +} + +// SetAllowUntrustedCertificates sets field value +func (o *OpenIDProviderGet) SetAllowUntrustedCertificates(v bool) { + o.AllowUntrustedCertificates = v +} + +// GetType returns the Type field value +func (o *OpenIDProviderGet) GetType() OpenIDProviderManualPostBodyType { + if o == nil { + var ret OpenIDProviderManualPostBodyType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGet) GetTypeOk() (*OpenIDProviderManualPostBodyType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OpenIDProviderGet) SetType(v OpenIDProviderManualPostBodyType) { + o.Type = v +} + +// GetProviderId returns the ProviderId field value +func (o *OpenIDProviderGet) GetProviderId() string { + if o == nil { + var ret string + return ret + } + + return o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGet) GetProviderIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProviderId, true +} + +// SetProviderId sets field value +func (o *OpenIDProviderGet) SetProviderId(v string) { + o.ProviderId = v +} + +func (o OpenIDProviderGet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderGet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["oidc_provider"] = o.OidcProvider + toSerialize["name"] = o.Name + toSerialize["org_id"] = o.OrgId + toSerialize["service_provider"] = o.ServiceProvider + if !IsNil(o.LoginDisabled) { + toSerialize["login_disabled"] = o.LoginDisabled + } + toSerialize["allow_untrusted_certificates"] = o.AllowUntrustedCertificates + toSerialize["type"] = o.Type + toSerialize["provider_id"] = o.ProviderId + return toSerialize, nil +} + +type NullableOpenIDProviderGet struct { + value *OpenIDProviderGet + isSet bool +} + +func (v NullableOpenIDProviderGet) Get() *OpenIDProviderGet { + return v.value +} + +func (v *NullableOpenIDProviderGet) Set(val *OpenIDProviderGet) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderGet) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderGet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderGet(val *OpenIDProviderGet) *NullableOpenIDProviderGet { + return &NullableOpenIDProviderGet{value: val, isSet: true} +} + +func (v NullableOpenIDProviderGet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderGet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_get_oidc_provider.go b/idp/model_open_id_provider_get_oidc_provider.go new file mode 100644 index 0000000..74bb85c --- /dev/null +++ b/idp/model_open_id_provider_get_oidc_provider.go @@ -0,0 +1,243 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderGetOidcProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderGetOidcProvider{} + +// OpenIDProviderGetOidcProvider struct for OpenIDProviderGetOidcProvider +type OpenIDProviderGetOidcProvider struct { + Client OpenIDProviderGetOidcProviderClient `json:"client"` + Issuer string `json:"issuer"` + Urls OpenIDProviderGetOidcProviderUrls `json:"urls"` + GroupScope *string `json:"group_scope,omitempty"` + ClaimsMapping *OpenIDProviderManualPostBodyOidcProviderClaimsMapping `json:"claims_mapping,omitempty"` +} + +// NewOpenIDProviderGetOidcProvider instantiates a new OpenIDProviderGetOidcProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderGetOidcProvider(client OpenIDProviderGetOidcProviderClient, issuer string, urls OpenIDProviderGetOidcProviderUrls) *OpenIDProviderGetOidcProvider { + this := OpenIDProviderGetOidcProvider{} + this.Client = client + this.Issuer = issuer + this.Urls = urls + return &this +} + +// NewOpenIDProviderGetOidcProviderWithDefaults instantiates a new OpenIDProviderGetOidcProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderGetOidcProviderWithDefaults() *OpenIDProviderGetOidcProvider { + this := OpenIDProviderGetOidcProvider{} + return &this +} + +// GetClient returns the Client field value +func (o *OpenIDProviderGetOidcProvider) GetClient() OpenIDProviderGetOidcProviderClient { + if o == nil { + var ret OpenIDProviderGetOidcProviderClient + return ret + } + + return o.Client +} + +// GetClientOk returns a tuple with the Client field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProvider) GetClientOk() (*OpenIDProviderGetOidcProviderClient, bool) { + if o == nil { + return nil, false + } + return &o.Client, true +} + +// SetClient sets field value +func (o *OpenIDProviderGetOidcProvider) SetClient(v OpenIDProviderGetOidcProviderClient) { + o.Client = v +} + +// GetIssuer returns the Issuer field value +func (o *OpenIDProviderGetOidcProvider) GetIssuer() string { + if o == nil { + var ret string + return ret + } + + return o.Issuer +} + +// GetIssuerOk returns a tuple with the Issuer field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProvider) GetIssuerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Issuer, true +} + +// SetIssuer sets field value +func (o *OpenIDProviderGetOidcProvider) SetIssuer(v string) { + o.Issuer = v +} + +// GetUrls returns the Urls field value +func (o *OpenIDProviderGetOidcProvider) GetUrls() OpenIDProviderGetOidcProviderUrls { + if o == nil { + var ret OpenIDProviderGetOidcProviderUrls + return ret + } + + return o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProvider) GetUrlsOk() (*OpenIDProviderGetOidcProviderUrls, bool) { + if o == nil { + return nil, false + } + return &o.Urls, true +} + +// SetUrls sets field value +func (o *OpenIDProviderGetOidcProvider) SetUrls(v OpenIDProviderGetOidcProviderUrls) { + o.Urls = v +} + +// GetGroupScope returns the GroupScope field value if set, zero value otherwise. +func (o *OpenIDProviderGetOidcProvider) GetGroupScope() string { + if o == nil || IsNil(o.GroupScope) { + var ret string + return ret + } + return *o.GroupScope +} + +// GetGroupScopeOk returns a tuple with the GroupScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProvider) GetGroupScopeOk() (*string, bool) { + if o == nil || IsNil(o.GroupScope) { + return nil, false + } + return o.GroupScope, true +} + +// HasGroupScope returns a boolean if a field has been set. +func (o *OpenIDProviderGetOidcProvider) HasGroupScope() bool { + if o != nil && !IsNil(o.GroupScope) { + return true + } + + return false +} + +// SetGroupScope gets a reference to the given string and assigns it to the GroupScope field. +func (o *OpenIDProviderGetOidcProvider) SetGroupScope(v string) { + o.GroupScope = &v +} + +// GetClaimsMapping returns the ClaimsMapping field value if set, zero value otherwise. +func (o *OpenIDProviderGetOidcProvider) GetClaimsMapping() OpenIDProviderManualPostBodyOidcProviderClaimsMapping { + if o == nil || IsNil(o.ClaimsMapping) { + var ret OpenIDProviderManualPostBodyOidcProviderClaimsMapping + return ret + } + return *o.ClaimsMapping +} + +// GetClaimsMappingOk returns a tuple with the ClaimsMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProvider) GetClaimsMappingOk() (*OpenIDProviderManualPostBodyOidcProviderClaimsMapping, bool) { + if o == nil || IsNil(o.ClaimsMapping) { + return nil, false + } + return o.ClaimsMapping, true +} + +// HasClaimsMapping returns a boolean if a field has been set. +func (o *OpenIDProviderGetOidcProvider) HasClaimsMapping() bool { + if o != nil && !IsNil(o.ClaimsMapping) { + return true + } + + return false +} + +// SetClaimsMapping gets a reference to the given OpenIDProviderManualPostBodyOidcProviderClaimsMapping and assigns it to the ClaimsMapping field. +func (o *OpenIDProviderGetOidcProvider) SetClaimsMapping(v OpenIDProviderManualPostBodyOidcProviderClaimsMapping) { + o.ClaimsMapping = &v +} + +func (o OpenIDProviderGetOidcProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderGetOidcProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["client"] = o.Client + toSerialize["issuer"] = o.Issuer + toSerialize["urls"] = o.Urls + if !IsNil(o.GroupScope) { + toSerialize["group_scope"] = o.GroupScope + } + if !IsNil(o.ClaimsMapping) { + toSerialize["claims_mapping"] = o.ClaimsMapping + } + return toSerialize, nil +} + +type NullableOpenIDProviderGetOidcProvider struct { + value *OpenIDProviderGetOidcProvider + isSet bool +} + +func (v NullableOpenIDProviderGetOidcProvider) Get() *OpenIDProviderGetOidcProvider { + return v.value +} + +func (v *NullableOpenIDProviderGetOidcProvider) Set(val *OpenIDProviderGetOidcProvider) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderGetOidcProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderGetOidcProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderGetOidcProvider(val *OpenIDProviderGetOidcProvider) *NullableOpenIDProviderGetOidcProvider { + return &NullableOpenIDProviderGetOidcProvider{value: val, isSet: true} +} + +func (v NullableOpenIDProviderGetOidcProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderGetOidcProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_get_oidc_provider_client.go b/idp/model_open_id_provider_get_oidc_provider_client.go new file mode 100644 index 0000000..d34cea7 --- /dev/null +++ b/idp/model_open_id_provider_get_oidc_provider_client.go @@ -0,0 +1,261 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderGetOidcProviderClient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderGetOidcProviderClient{} + +// OpenIDProviderGetOidcProviderClient struct for OpenIDProviderGetOidcProviderClient +type OpenIDProviderGetOidcProviderClient struct { + Credentials OpenIDProviderGetOidcProviderClientCredentials `json:"credentials"` + Urls *OpenIDProviderDynamicPostBodyOidcProviderClientUrls `json:"urls,omitempty"` + Registration *OpenIDProviderPatchOidcProviderClientRegistration `json:"registration,omitempty"` + Metadata *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata `json:"metadata,omitempty"` + TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported,omitempty"` +} + +// NewOpenIDProviderGetOidcProviderClient instantiates a new OpenIDProviderGetOidcProviderClient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderGetOidcProviderClient(credentials OpenIDProviderGetOidcProviderClientCredentials) *OpenIDProviderGetOidcProviderClient { + this := OpenIDProviderGetOidcProviderClient{} + this.Credentials = credentials + return &this +} + +// NewOpenIDProviderGetOidcProviderClientWithDefaults instantiates a new OpenIDProviderGetOidcProviderClient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderGetOidcProviderClientWithDefaults() *OpenIDProviderGetOidcProviderClient { + this := OpenIDProviderGetOidcProviderClient{} + return &this +} + +// GetCredentials returns the Credentials field value +func (o *OpenIDProviderGetOidcProviderClient) GetCredentials() OpenIDProviderGetOidcProviderClientCredentials { + if o == nil { + var ret OpenIDProviderGetOidcProviderClientCredentials + return ret + } + + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderClient) GetCredentialsOk() (*OpenIDProviderGetOidcProviderClientCredentials, bool) { + if o == nil { + return nil, false + } + return &o.Credentials, true +} + +// SetCredentials sets field value +func (o *OpenIDProviderGetOidcProviderClient) SetCredentials(v OpenIDProviderGetOidcProviderClientCredentials) { + o.Credentials = v +} + +// GetUrls returns the Urls field value if set, zero value otherwise. +func (o *OpenIDProviderGetOidcProviderClient) GetUrls() OpenIDProviderDynamicPostBodyOidcProviderClientUrls { + if o == nil || IsNil(o.Urls) { + var ret OpenIDProviderDynamicPostBodyOidcProviderClientUrls + return ret + } + return *o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderClient) GetUrlsOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientUrls, bool) { + if o == nil || IsNil(o.Urls) { + return nil, false + } + return o.Urls, true +} + +// HasUrls returns a boolean if a field has been set. +func (o *OpenIDProviderGetOidcProviderClient) HasUrls() bool { + if o != nil && !IsNil(o.Urls) { + return true + } + + return false +} + +// SetUrls gets a reference to the given OpenIDProviderDynamicPostBodyOidcProviderClientUrls and assigns it to the Urls field. +func (o *OpenIDProviderGetOidcProviderClient) SetUrls(v OpenIDProviderDynamicPostBodyOidcProviderClientUrls) { + o.Urls = &v +} + +// GetRegistration returns the Registration field value if set, zero value otherwise. +func (o *OpenIDProviderGetOidcProviderClient) GetRegistration() OpenIDProviderPatchOidcProviderClientRegistration { + if o == nil || IsNil(o.Registration) { + var ret OpenIDProviderPatchOidcProviderClientRegistration + return ret + } + return *o.Registration +} + +// GetRegistrationOk returns a tuple with the Registration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderClient) GetRegistrationOk() (*OpenIDProviderPatchOidcProviderClientRegistration, bool) { + if o == nil || IsNil(o.Registration) { + return nil, false + } + return o.Registration, true +} + +// HasRegistration returns a boolean if a field has been set. +func (o *OpenIDProviderGetOidcProviderClient) HasRegistration() bool { + if o != nil && !IsNil(o.Registration) { + return true + } + + return false +} + +// SetRegistration gets a reference to the given OpenIDProviderPatchOidcProviderClientRegistration and assigns it to the Registration field. +func (o *OpenIDProviderGetOidcProviderClient) SetRegistration(v OpenIDProviderPatchOidcProviderClientRegistration) { + o.Registration = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *OpenIDProviderGetOidcProviderClient) GetMetadata() OpenIDProviderDynamicPostBodyOidcProviderClientMetadata { + if o == nil || IsNil(o.Metadata) { + var ret OpenIDProviderDynamicPostBodyOidcProviderClientMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderClient) GetMetadataOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *OpenIDProviderGetOidcProviderClient) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given OpenIDProviderDynamicPostBodyOidcProviderClientMetadata and assigns it to the Metadata field. +func (o *OpenIDProviderGetOidcProviderClient) SetMetadata(v OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) { + o.Metadata = &v +} + +// GetTokenEndpointAuthMethodsSupported returns the TokenEndpointAuthMethodsSupported field value if set, zero value otherwise. +func (o *OpenIDProviderGetOidcProviderClient) GetTokenEndpointAuthMethodsSupported() []string { + if o == nil || IsNil(o.TokenEndpointAuthMethodsSupported) { + var ret []string + return ret + } + return o.TokenEndpointAuthMethodsSupported +} + +// GetTokenEndpointAuthMethodsSupportedOk returns a tuple with the TokenEndpointAuthMethodsSupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderClient) GetTokenEndpointAuthMethodsSupportedOk() ([]string, bool) { + if o == nil || IsNil(o.TokenEndpointAuthMethodsSupported) { + return nil, false + } + return o.TokenEndpointAuthMethodsSupported, true +} + +// HasTokenEndpointAuthMethodsSupported returns a boolean if a field has been set. +func (o *OpenIDProviderGetOidcProviderClient) HasTokenEndpointAuthMethodsSupported() bool { + if o != nil && !IsNil(o.TokenEndpointAuthMethodsSupported) { + return true + } + + return false +} + +// SetTokenEndpointAuthMethodsSupported gets a reference to the given []string and assigns it to the TokenEndpointAuthMethodsSupported field. +func (o *OpenIDProviderGetOidcProviderClient) SetTokenEndpointAuthMethodsSupported(v []string) { + o.TokenEndpointAuthMethodsSupported = v +} + +func (o OpenIDProviderGetOidcProviderClient) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderGetOidcProviderClient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["credentials"] = o.Credentials + if !IsNil(o.Urls) { + toSerialize["urls"] = o.Urls + } + if !IsNil(o.Registration) { + toSerialize["registration"] = o.Registration + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.TokenEndpointAuthMethodsSupported) { + toSerialize["token_endpoint_auth_methods_supported"] = o.TokenEndpointAuthMethodsSupported + } + return toSerialize, nil +} + +type NullableOpenIDProviderGetOidcProviderClient struct { + value *OpenIDProviderGetOidcProviderClient + isSet bool +} + +func (v NullableOpenIDProviderGetOidcProviderClient) Get() *OpenIDProviderGetOidcProviderClient { + return v.value +} + +func (v *NullableOpenIDProviderGetOidcProviderClient) Set(val *OpenIDProviderGetOidcProviderClient) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderGetOidcProviderClient) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderGetOidcProviderClient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderGetOidcProviderClient(val *OpenIDProviderGetOidcProviderClient) *NullableOpenIDProviderGetOidcProviderClient { + return &NullableOpenIDProviderGetOidcProviderClient{value: val, isSet: true} +} + +func (v NullableOpenIDProviderGetOidcProviderClient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderGetOidcProviderClient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_get_oidc_provider_client_credentials.go b/idp/model_open_id_provider_get_oidc_provider_client_credentials.go new file mode 100644 index 0000000..fa993fc --- /dev/null +++ b/idp/model_open_id_provider_get_oidc_provider_client_credentials.go @@ -0,0 +1,153 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderGetOidcProviderClientCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderGetOidcProviderClientCredentials{} + +// OpenIDProviderGetOidcProviderClientCredentials struct for OpenIDProviderGetOidcProviderClientCredentials +type OpenIDProviderGetOidcProviderClientCredentials struct { + Id string `json:"id"` + Secret *string `json:"secret,omitempty"` +} + +// NewOpenIDProviderGetOidcProviderClientCredentials instantiates a new OpenIDProviderGetOidcProviderClientCredentials object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderGetOidcProviderClientCredentials(id string) *OpenIDProviderGetOidcProviderClientCredentials { + this := OpenIDProviderGetOidcProviderClientCredentials{} + this.Id = id + return &this +} + +// NewOpenIDProviderGetOidcProviderClientCredentialsWithDefaults instantiates a new OpenIDProviderGetOidcProviderClientCredentials object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderGetOidcProviderClientCredentialsWithDefaults() *OpenIDProviderGetOidcProviderClientCredentials { + this := OpenIDProviderGetOidcProviderClientCredentials{} + return &this +} + +// GetId returns the Id field value +func (o *OpenIDProviderGetOidcProviderClientCredentials) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderClientCredentials) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *OpenIDProviderGetOidcProviderClientCredentials) SetId(v string) { + o.Id = v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *OpenIDProviderGetOidcProviderClientCredentials) GetSecret() string { + if o == nil || IsNil(o.Secret) { + var ret string + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderClientCredentials) GetSecretOk() (*string, bool) { + if o == nil || IsNil(o.Secret) { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *OpenIDProviderGetOidcProviderClientCredentials) HasSecret() bool { + if o != nil && !IsNil(o.Secret) { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *OpenIDProviderGetOidcProviderClientCredentials) SetSecret(v string) { + o.Secret = &v +} + +func (o OpenIDProviderGetOidcProviderClientCredentials) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderGetOidcProviderClientCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + if !IsNil(o.Secret) { + toSerialize["secret"] = o.Secret + } + return toSerialize, nil +} + +type NullableOpenIDProviderGetOidcProviderClientCredentials struct { + value *OpenIDProviderGetOidcProviderClientCredentials + isSet bool +} + +func (v NullableOpenIDProviderGetOidcProviderClientCredentials) Get() *OpenIDProviderGetOidcProviderClientCredentials { + return v.value +} + +func (v *NullableOpenIDProviderGetOidcProviderClientCredentials) Set(val *OpenIDProviderGetOidcProviderClientCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderGetOidcProviderClientCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderGetOidcProviderClientCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderGetOidcProviderClientCredentials(val *OpenIDProviderGetOidcProviderClientCredentials) *NullableOpenIDProviderGetOidcProviderClientCredentials { + return &NullableOpenIDProviderGetOidcProviderClientCredentials{value: val, isSet: true} +} + +func (v NullableOpenIDProviderGetOidcProviderClientCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderGetOidcProviderClientCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_get_oidc_provider_urls.go b/idp/model_open_id_provider_get_oidc_provider_urls.go new file mode 100644 index 0000000..f6791f0 --- /dev/null +++ b/idp/model_open_id_provider_get_oidc_provider_urls.go @@ -0,0 +1,198 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderGetOidcProviderUrls type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderGetOidcProviderUrls{} + +// OpenIDProviderGetOidcProviderUrls struct for OpenIDProviderGetOidcProviderUrls +type OpenIDProviderGetOidcProviderUrls struct { + Authorize string `json:"authorize"` + Redirect string `json:"redirect"` + Token string `json:"token"` + Userinfo string `json:"userinfo"` +} + +// NewOpenIDProviderGetOidcProviderUrls instantiates a new OpenIDProviderGetOidcProviderUrls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderGetOidcProviderUrls(authorize string, redirect string, token string, userinfo string) *OpenIDProviderGetOidcProviderUrls { + this := OpenIDProviderGetOidcProviderUrls{} + this.Authorize = authorize + this.Redirect = redirect + this.Token = token + this.Userinfo = userinfo + return &this +} + +// NewOpenIDProviderGetOidcProviderUrlsWithDefaults instantiates a new OpenIDProviderGetOidcProviderUrls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderGetOidcProviderUrlsWithDefaults() *OpenIDProviderGetOidcProviderUrls { + this := OpenIDProviderGetOidcProviderUrls{} + return &this +} + +// GetAuthorize returns the Authorize field value +func (o *OpenIDProviderGetOidcProviderUrls) GetAuthorize() string { + if o == nil { + var ret string + return ret + } + + return o.Authorize +} + +// GetAuthorizeOk returns a tuple with the Authorize field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderUrls) GetAuthorizeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Authorize, true +} + +// SetAuthorize sets field value +func (o *OpenIDProviderGetOidcProviderUrls) SetAuthorize(v string) { + o.Authorize = v +} + +// GetRedirect returns the Redirect field value +func (o *OpenIDProviderGetOidcProviderUrls) GetRedirect() string { + if o == nil { + var ret string + return ret + } + + return o.Redirect +} + +// GetRedirectOk returns a tuple with the Redirect field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderUrls) GetRedirectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Redirect, true +} + +// SetRedirect sets field value +func (o *OpenIDProviderGetOidcProviderUrls) SetRedirect(v string) { + o.Redirect = v +} + +// GetToken returns the Token field value +func (o *OpenIDProviderGetOidcProviderUrls) GetToken() string { + if o == nil { + var ret string + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderUrls) GetTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *OpenIDProviderGetOidcProviderUrls) SetToken(v string) { + o.Token = v +} + +// GetUserinfo returns the Userinfo field value +func (o *OpenIDProviderGetOidcProviderUrls) GetUserinfo() string { + if o == nil { + var ret string + return ret + } + + return o.Userinfo +} + +// GetUserinfoOk returns a tuple with the Userinfo field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetOidcProviderUrls) GetUserinfoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Userinfo, true +} + +// SetUserinfo sets field value +func (o *OpenIDProviderGetOidcProviderUrls) SetUserinfo(v string) { + o.Userinfo = v +} + +func (o OpenIDProviderGetOidcProviderUrls) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderGetOidcProviderUrls) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["authorize"] = o.Authorize + toSerialize["redirect"] = o.Redirect + toSerialize["token"] = o.Token + toSerialize["userinfo"] = o.Userinfo + return toSerialize, nil +} + +type NullableOpenIDProviderGetOidcProviderUrls struct { + value *OpenIDProviderGetOidcProviderUrls + isSet bool +} + +func (v NullableOpenIDProviderGetOidcProviderUrls) Get() *OpenIDProviderGetOidcProviderUrls { + return v.value +} + +func (v *NullableOpenIDProviderGetOidcProviderUrls) Set(val *OpenIDProviderGetOidcProviderUrls) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderGetOidcProviderUrls) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderGetOidcProviderUrls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderGetOidcProviderUrls(val *OpenIDProviderGetOidcProviderUrls) *NullableOpenIDProviderGetOidcProviderUrls { + return &NullableOpenIDProviderGetOidcProviderUrls{value: val, isSet: true} +} + +func (v NullableOpenIDProviderGetOidcProviderUrls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderGetOidcProviderUrls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_get_service_provider.go b/idp/model_open_id_provider_get_service_provider.go new file mode 100644 index 0000000..7eac48e --- /dev/null +++ b/idp/model_open_id_provider_get_service_provider.go @@ -0,0 +1,117 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderGetServiceProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderGetServiceProvider{} + +// OpenIDProviderGetServiceProvider struct for OpenIDProviderGetServiceProvider +type OpenIDProviderGetServiceProvider struct { + Urls OpenIDProviderGetServiceProviderUrls `json:"urls"` +} + +// NewOpenIDProviderGetServiceProvider instantiates a new OpenIDProviderGetServiceProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderGetServiceProvider(urls OpenIDProviderGetServiceProviderUrls) *OpenIDProviderGetServiceProvider { + this := OpenIDProviderGetServiceProvider{} + this.Urls = urls + return &this +} + +// NewOpenIDProviderGetServiceProviderWithDefaults instantiates a new OpenIDProviderGetServiceProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderGetServiceProviderWithDefaults() *OpenIDProviderGetServiceProvider { + this := OpenIDProviderGetServiceProvider{} + return &this +} + +// GetUrls returns the Urls field value +func (o *OpenIDProviderGetServiceProvider) GetUrls() OpenIDProviderGetServiceProviderUrls { + if o == nil { + var ret OpenIDProviderGetServiceProviderUrls + return ret + } + + return o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetServiceProvider) GetUrlsOk() (*OpenIDProviderGetServiceProviderUrls, bool) { + if o == nil { + return nil, false + } + return &o.Urls, true +} + +// SetUrls sets field value +func (o *OpenIDProviderGetServiceProvider) SetUrls(v OpenIDProviderGetServiceProviderUrls) { + o.Urls = v +} + +func (o OpenIDProviderGetServiceProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderGetServiceProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["urls"] = o.Urls + return toSerialize, nil +} + +type NullableOpenIDProviderGetServiceProvider struct { + value *OpenIDProviderGetServiceProvider + isSet bool +} + +func (v NullableOpenIDProviderGetServiceProvider) Get() *OpenIDProviderGetServiceProvider { + return v.value +} + +func (v *NullableOpenIDProviderGetServiceProvider) Set(val *OpenIDProviderGetServiceProvider) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderGetServiceProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderGetServiceProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderGetServiceProvider(val *OpenIDProviderGetServiceProvider) *NullableOpenIDProviderGetServiceProvider { + return &NullableOpenIDProviderGetServiceProvider{value: val, isSet: true} +} + +func (v NullableOpenIDProviderGetServiceProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderGetServiceProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_get_service_provider_urls.go b/idp/model_open_id_provider_get_service_provider_urls.go new file mode 100644 index 0000000..431dfe4 --- /dev/null +++ b/idp/model_open_id_provider_get_service_provider_urls.go @@ -0,0 +1,117 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderGetServiceProviderUrls type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderGetServiceProviderUrls{} + +// OpenIDProviderGetServiceProviderUrls struct for OpenIDProviderGetServiceProviderUrls +type OpenIDProviderGetServiceProviderUrls struct { + SignOn string `json:"sign_on"` +} + +// NewOpenIDProviderGetServiceProviderUrls instantiates a new OpenIDProviderGetServiceProviderUrls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderGetServiceProviderUrls(signOn string) *OpenIDProviderGetServiceProviderUrls { + this := OpenIDProviderGetServiceProviderUrls{} + this.SignOn = signOn + return &this +} + +// NewOpenIDProviderGetServiceProviderUrlsWithDefaults instantiates a new OpenIDProviderGetServiceProviderUrls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderGetServiceProviderUrlsWithDefaults() *OpenIDProviderGetServiceProviderUrls { + this := OpenIDProviderGetServiceProviderUrls{} + return &this +} + +// GetSignOn returns the SignOn field value +func (o *OpenIDProviderGetServiceProviderUrls) GetSignOn() string { + if o == nil { + var ret string + return ret + } + + return o.SignOn +} + +// GetSignOnOk returns a tuple with the SignOn field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderGetServiceProviderUrls) GetSignOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SignOn, true +} + +// SetSignOn sets field value +func (o *OpenIDProviderGetServiceProviderUrls) SetSignOn(v string) { + o.SignOn = v +} + +func (o OpenIDProviderGetServiceProviderUrls) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderGetServiceProviderUrls) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sign_on"] = o.SignOn + return toSerialize, nil +} + +type NullableOpenIDProviderGetServiceProviderUrls struct { + value *OpenIDProviderGetServiceProviderUrls + isSet bool +} + +func (v NullableOpenIDProviderGetServiceProviderUrls) Get() *OpenIDProviderGetServiceProviderUrls { + return v.value +} + +func (v *NullableOpenIDProviderGetServiceProviderUrls) Set(val *OpenIDProviderGetServiceProviderUrls) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderGetServiceProviderUrls) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderGetServiceProviderUrls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderGetServiceProviderUrls(val *OpenIDProviderGetServiceProviderUrls) *NullableOpenIDProviderGetServiceProviderUrls { + return &NullableOpenIDProviderGetServiceProviderUrls{value: val, isSet: true} +} + +func (v NullableOpenIDProviderGetServiceProviderUrls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderGetServiceProviderUrls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_manual_post_body.go b/idp/model_open_id_provider_manual_post_body.go new file mode 100644 index 0000000..46fdd4a --- /dev/null +++ b/idp/model_open_id_provider_manual_post_body.go @@ -0,0 +1,279 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderManualPostBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderManualPostBody{} + +// OpenIDProviderManualPostBody struct for OpenIDProviderManualPostBody +type OpenIDProviderManualPostBody struct { + Name string `json:"name"` + ArcNamespace *string `json:"arc_namespace,omitempty"` + Type OpenIDProviderManualPostBodyType `json:"type"` + OidcProvider OpenIDProviderManualPostBodyOidcProvider `json:"oidc_provider"` + AllowUntrustedCertificates *bool `json:"allow_untrusted_certificates,omitempty"` + LoginDisabled *bool `json:"login_disabled,omitempty"` +} + +// NewOpenIDProviderManualPostBody instantiates a new OpenIDProviderManualPostBody object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderManualPostBody(name string, type_ OpenIDProviderManualPostBodyType, oidcProvider OpenIDProviderManualPostBodyOidcProvider) *OpenIDProviderManualPostBody { + this := OpenIDProviderManualPostBody{} + this.Name = name + this.Type = type_ + this.OidcProvider = oidcProvider + return &this +} + +// NewOpenIDProviderManualPostBodyWithDefaults instantiates a new OpenIDProviderManualPostBody object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderManualPostBodyWithDefaults() *OpenIDProviderManualPostBody { + this := OpenIDProviderManualPostBody{} + return &this +} + +// GetName returns the Name field value +func (o *OpenIDProviderManualPostBody) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBody) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *OpenIDProviderManualPostBody) SetName(v string) { + o.Name = v +} + +// GetArcNamespace returns the ArcNamespace field value if set, zero value otherwise. +func (o *OpenIDProviderManualPostBody) GetArcNamespace() string { + if o == nil || IsNil(o.ArcNamespace) { + var ret string + return ret + } + return *o.ArcNamespace +} + +// GetArcNamespaceOk returns a tuple with the ArcNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBody) GetArcNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.ArcNamespace) { + return nil, false + } + return o.ArcNamespace, true +} + +// HasArcNamespace returns a boolean if a field has been set. +func (o *OpenIDProviderManualPostBody) HasArcNamespace() bool { + if o != nil && !IsNil(o.ArcNamespace) { + return true + } + + return false +} + +// SetArcNamespace gets a reference to the given string and assigns it to the ArcNamespace field. +func (o *OpenIDProviderManualPostBody) SetArcNamespace(v string) { + o.ArcNamespace = &v +} + +// GetType returns the Type field value +func (o *OpenIDProviderManualPostBody) GetType() OpenIDProviderManualPostBodyType { + if o == nil { + var ret OpenIDProviderManualPostBodyType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBody) GetTypeOk() (*OpenIDProviderManualPostBodyType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OpenIDProviderManualPostBody) SetType(v OpenIDProviderManualPostBodyType) { + o.Type = v +} + +// GetOidcProvider returns the OidcProvider field value +func (o *OpenIDProviderManualPostBody) GetOidcProvider() OpenIDProviderManualPostBodyOidcProvider { + if o == nil { + var ret OpenIDProviderManualPostBodyOidcProvider + return ret + } + + return o.OidcProvider +} + +// GetOidcProviderOk returns a tuple with the OidcProvider field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBody) GetOidcProviderOk() (*OpenIDProviderManualPostBodyOidcProvider, bool) { + if o == nil { + return nil, false + } + return &o.OidcProvider, true +} + +// SetOidcProvider sets field value +func (o *OpenIDProviderManualPostBody) SetOidcProvider(v OpenIDProviderManualPostBodyOidcProvider) { + o.OidcProvider = v +} + +// GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field value if set, zero value otherwise. +func (o *OpenIDProviderManualPostBody) GetAllowUntrustedCertificates() bool { + if o == nil || IsNil(o.AllowUntrustedCertificates) { + var ret bool + return ret + } + return *o.AllowUntrustedCertificates +} + +// GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBody) GetAllowUntrustedCertificatesOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUntrustedCertificates) { + return nil, false + } + return o.AllowUntrustedCertificates, true +} + +// HasAllowUntrustedCertificates returns a boolean if a field has been set. +func (o *OpenIDProviderManualPostBody) HasAllowUntrustedCertificates() bool { + if o != nil && !IsNil(o.AllowUntrustedCertificates) { + return true + } + + return false +} + +// SetAllowUntrustedCertificates gets a reference to the given bool and assigns it to the AllowUntrustedCertificates field. +func (o *OpenIDProviderManualPostBody) SetAllowUntrustedCertificates(v bool) { + o.AllowUntrustedCertificates = &v +} + +// GetLoginDisabled returns the LoginDisabled field value if set, zero value otherwise. +func (o *OpenIDProviderManualPostBody) GetLoginDisabled() bool { + if o == nil || IsNil(o.LoginDisabled) { + var ret bool + return ret + } + return *o.LoginDisabled +} + +// GetLoginDisabledOk returns a tuple with the LoginDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBody) GetLoginDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.LoginDisabled) { + return nil, false + } + return o.LoginDisabled, true +} + +// HasLoginDisabled returns a boolean if a field has been set. +func (o *OpenIDProviderManualPostBody) HasLoginDisabled() bool { + if o != nil && !IsNil(o.LoginDisabled) { + return true + } + + return false +} + +// SetLoginDisabled gets a reference to the given bool and assigns it to the LoginDisabled field. +func (o *OpenIDProviderManualPostBody) SetLoginDisabled(v bool) { + o.LoginDisabled = &v +} + +func (o OpenIDProviderManualPostBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderManualPostBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.ArcNamespace) { + toSerialize["arc_namespace"] = o.ArcNamespace + } + toSerialize["type"] = o.Type + toSerialize["oidc_provider"] = o.OidcProvider + if !IsNil(o.AllowUntrustedCertificates) { + toSerialize["allow_untrusted_certificates"] = o.AllowUntrustedCertificates + } + if !IsNil(o.LoginDisabled) { + toSerialize["login_disabled"] = o.LoginDisabled + } + return toSerialize, nil +} + +type NullableOpenIDProviderManualPostBody struct { + value *OpenIDProviderManualPostBody + isSet bool +} + +func (v NullableOpenIDProviderManualPostBody) Get() *OpenIDProviderManualPostBody { + return v.value +} + +func (v *NullableOpenIDProviderManualPostBody) Set(val *OpenIDProviderManualPostBody) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderManualPostBody) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderManualPostBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderManualPostBody(val *OpenIDProviderManualPostBody) *NullableOpenIDProviderManualPostBody { + return &NullableOpenIDProviderManualPostBody{value: val, isSet: true} +} + +func (v NullableOpenIDProviderManualPostBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderManualPostBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_manual_post_body_oidc_provider.go b/idp/model_open_id_provider_manual_post_body_oidc_provider.go new file mode 100644 index 0000000..8eb7819 --- /dev/null +++ b/idp/model_open_id_provider_manual_post_body_oidc_provider.go @@ -0,0 +1,252 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderManualPostBodyOidcProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderManualPostBodyOidcProvider{} + +// OpenIDProviderManualPostBodyOidcProvider struct for OpenIDProviderManualPostBodyOidcProvider +type OpenIDProviderManualPostBodyOidcProvider struct { + Client OpenIDProviderManualPostBodyOidcProviderClient `json:"client"` + Issuer *string `json:"issuer,omitempty"` + Urls OpenIDProviderManualPostBodyOidcProviderUrls `json:"urls"` + GroupScope *string `json:"group_scope,omitempty"` + ClaimsMapping *OpenIDProviderManualPostBodyOidcProviderClaimsMapping `json:"claims_mapping,omitempty"` +} + +// NewOpenIDProviderManualPostBodyOidcProvider instantiates a new OpenIDProviderManualPostBodyOidcProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderManualPostBodyOidcProvider(client OpenIDProviderManualPostBodyOidcProviderClient, urls OpenIDProviderManualPostBodyOidcProviderUrls) *OpenIDProviderManualPostBodyOidcProvider { + this := OpenIDProviderManualPostBodyOidcProvider{} + this.Client = client + this.Urls = urls + return &this +} + +// NewOpenIDProviderManualPostBodyOidcProviderWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderManualPostBodyOidcProviderWithDefaults() *OpenIDProviderManualPostBodyOidcProvider { + this := OpenIDProviderManualPostBodyOidcProvider{} + return &this +} + +// GetClient returns the Client field value +func (o *OpenIDProviderManualPostBodyOidcProvider) GetClient() OpenIDProviderManualPostBodyOidcProviderClient { + if o == nil { + var ret OpenIDProviderManualPostBodyOidcProviderClient + return ret + } + + return o.Client +} + +// GetClientOk returns a tuple with the Client field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProvider) GetClientOk() (*OpenIDProviderManualPostBodyOidcProviderClient, bool) { + if o == nil { + return nil, false + } + return &o.Client, true +} + +// SetClient sets field value +func (o *OpenIDProviderManualPostBodyOidcProvider) SetClient(v OpenIDProviderManualPostBodyOidcProviderClient) { + o.Client = v +} + +// GetIssuer returns the Issuer field value if set, zero value otherwise. +func (o *OpenIDProviderManualPostBodyOidcProvider) GetIssuer() string { + if o == nil || IsNil(o.Issuer) { + var ret string + return ret + } + return *o.Issuer +} + +// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProvider) GetIssuerOk() (*string, bool) { + if o == nil || IsNil(o.Issuer) { + return nil, false + } + return o.Issuer, true +} + +// HasIssuer returns a boolean if a field has been set. +func (o *OpenIDProviderManualPostBodyOidcProvider) HasIssuer() bool { + if o != nil && !IsNil(o.Issuer) { + return true + } + + return false +} + +// SetIssuer gets a reference to the given string and assigns it to the Issuer field. +func (o *OpenIDProviderManualPostBodyOidcProvider) SetIssuer(v string) { + o.Issuer = &v +} + +// GetUrls returns the Urls field value +func (o *OpenIDProviderManualPostBodyOidcProvider) GetUrls() OpenIDProviderManualPostBodyOidcProviderUrls { + if o == nil { + var ret OpenIDProviderManualPostBodyOidcProviderUrls + return ret + } + + return o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProvider) GetUrlsOk() (*OpenIDProviderManualPostBodyOidcProviderUrls, bool) { + if o == nil { + return nil, false + } + return &o.Urls, true +} + +// SetUrls sets field value +func (o *OpenIDProviderManualPostBodyOidcProvider) SetUrls(v OpenIDProviderManualPostBodyOidcProviderUrls) { + o.Urls = v +} + +// GetGroupScope returns the GroupScope field value if set, zero value otherwise. +func (o *OpenIDProviderManualPostBodyOidcProvider) GetGroupScope() string { + if o == nil || IsNil(o.GroupScope) { + var ret string + return ret + } + return *o.GroupScope +} + +// GetGroupScopeOk returns a tuple with the GroupScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProvider) GetGroupScopeOk() (*string, bool) { + if o == nil || IsNil(o.GroupScope) { + return nil, false + } + return o.GroupScope, true +} + +// HasGroupScope returns a boolean if a field has been set. +func (o *OpenIDProviderManualPostBodyOidcProvider) HasGroupScope() bool { + if o != nil && !IsNil(o.GroupScope) { + return true + } + + return false +} + +// SetGroupScope gets a reference to the given string and assigns it to the GroupScope field. +func (o *OpenIDProviderManualPostBodyOidcProvider) SetGroupScope(v string) { + o.GroupScope = &v +} + +// GetClaimsMapping returns the ClaimsMapping field value if set, zero value otherwise. +func (o *OpenIDProviderManualPostBodyOidcProvider) GetClaimsMapping() OpenIDProviderManualPostBodyOidcProviderClaimsMapping { + if o == nil || IsNil(o.ClaimsMapping) { + var ret OpenIDProviderManualPostBodyOidcProviderClaimsMapping + return ret + } + return *o.ClaimsMapping +} + +// GetClaimsMappingOk returns a tuple with the ClaimsMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProvider) GetClaimsMappingOk() (*OpenIDProviderManualPostBodyOidcProviderClaimsMapping, bool) { + if o == nil || IsNil(o.ClaimsMapping) { + return nil, false + } + return o.ClaimsMapping, true +} + +// HasClaimsMapping returns a boolean if a field has been set. +func (o *OpenIDProviderManualPostBodyOidcProvider) HasClaimsMapping() bool { + if o != nil && !IsNil(o.ClaimsMapping) { + return true + } + + return false +} + +// SetClaimsMapping gets a reference to the given OpenIDProviderManualPostBodyOidcProviderClaimsMapping and assigns it to the ClaimsMapping field. +func (o *OpenIDProviderManualPostBodyOidcProvider) SetClaimsMapping(v OpenIDProviderManualPostBodyOidcProviderClaimsMapping) { + o.ClaimsMapping = &v +} + +func (o OpenIDProviderManualPostBodyOidcProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderManualPostBodyOidcProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["client"] = o.Client + if !IsNil(o.Issuer) { + toSerialize["issuer"] = o.Issuer + } + toSerialize["urls"] = o.Urls + if !IsNil(o.GroupScope) { + toSerialize["group_scope"] = o.GroupScope + } + if !IsNil(o.ClaimsMapping) { + toSerialize["claims_mapping"] = o.ClaimsMapping + } + return toSerialize, nil +} + +type NullableOpenIDProviderManualPostBodyOidcProvider struct { + value *OpenIDProviderManualPostBodyOidcProvider + isSet bool +} + +func (v NullableOpenIDProviderManualPostBodyOidcProvider) Get() *OpenIDProviderManualPostBodyOidcProvider { + return v.value +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProvider) Set(val *OpenIDProviderManualPostBodyOidcProvider) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderManualPostBodyOidcProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderManualPostBodyOidcProvider(val *OpenIDProviderManualPostBodyOidcProvider) *NullableOpenIDProviderManualPostBodyOidcProvider { + return &NullableOpenIDProviderManualPostBodyOidcProvider{value: val, isSet: true} +} + +func (v NullableOpenIDProviderManualPostBodyOidcProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_manual_post_body_oidc_provider_claims_mapping.go b/idp/model_open_id_provider_manual_post_body_oidc_provider_claims_mapping.go new file mode 100644 index 0000000..e6ea00b --- /dev/null +++ b/idp/model_open_id_provider_manual_post_body_oidc_provider_claims_mapping.go @@ -0,0 +1,126 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderManualPostBodyOidcProviderClaimsMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderManualPostBodyOidcProviderClaimsMapping{} + +// OpenIDProviderManualPostBodyOidcProviderClaimsMapping struct for OpenIDProviderManualPostBodyOidcProviderClaimsMapping +type OpenIDProviderManualPostBodyOidcProviderClaimsMapping struct { + GroupExpression *string `json:"group_expression,omitempty"` +} + +// NewOpenIDProviderManualPostBodyOidcProviderClaimsMapping instantiates a new OpenIDProviderManualPostBodyOidcProviderClaimsMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderManualPostBodyOidcProviderClaimsMapping() *OpenIDProviderManualPostBodyOidcProviderClaimsMapping { + this := OpenIDProviderManualPostBodyOidcProviderClaimsMapping{} + return &this +} + +// NewOpenIDProviderManualPostBodyOidcProviderClaimsMappingWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProviderClaimsMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderManualPostBodyOidcProviderClaimsMappingWithDefaults() *OpenIDProviderManualPostBodyOidcProviderClaimsMapping { + this := OpenIDProviderManualPostBodyOidcProviderClaimsMapping{} + return &this +} + +// GetGroupExpression returns the GroupExpression field value if set, zero value otherwise. +func (o *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) GetGroupExpression() string { + if o == nil || IsNil(o.GroupExpression) { + var ret string + return ret + } + return *o.GroupExpression +} + +// GetGroupExpressionOk returns a tuple with the GroupExpression field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) GetGroupExpressionOk() (*string, bool) { + if o == nil || IsNil(o.GroupExpression) { + return nil, false + } + return o.GroupExpression, true +} + +// HasGroupExpression returns a boolean if a field has been set. +func (o *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) HasGroupExpression() bool { + if o != nil && !IsNil(o.GroupExpression) { + return true + } + + return false +} + +// SetGroupExpression gets a reference to the given string and assigns it to the GroupExpression field. +func (o *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) SetGroupExpression(v string) { + o.GroupExpression = &v +} + +func (o OpenIDProviderManualPostBodyOidcProviderClaimsMapping) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderManualPostBodyOidcProviderClaimsMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GroupExpression) { + toSerialize["group_expression"] = o.GroupExpression + } + return toSerialize, nil +} + +type NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping struct { + value *OpenIDProviderManualPostBodyOidcProviderClaimsMapping + isSet bool +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping) Get() *OpenIDProviderManualPostBodyOidcProviderClaimsMapping { + return v.value +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping) Set(val *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping(val *OpenIDProviderManualPostBodyOidcProviderClaimsMapping) *NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping { + return &NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping{value: val, isSet: true} +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClaimsMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_manual_post_body_oidc_provider_client.go b/idp/model_open_id_provider_manual_post_body_oidc_provider_client.go new file mode 100644 index 0000000..b589183 --- /dev/null +++ b/idp/model_open_id_provider_manual_post_body_oidc_provider_client.go @@ -0,0 +1,117 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderManualPostBodyOidcProviderClient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderManualPostBodyOidcProviderClient{} + +// OpenIDProviderManualPostBodyOidcProviderClient struct for OpenIDProviderManualPostBodyOidcProviderClient +type OpenIDProviderManualPostBodyOidcProviderClient struct { + Credentials OpenIDProviderManualPostBodyOidcProviderClientCredentials `json:"credentials"` +} + +// NewOpenIDProviderManualPostBodyOidcProviderClient instantiates a new OpenIDProviderManualPostBodyOidcProviderClient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderManualPostBodyOidcProviderClient(credentials OpenIDProviderManualPostBodyOidcProviderClientCredentials) *OpenIDProviderManualPostBodyOidcProviderClient { + this := OpenIDProviderManualPostBodyOidcProviderClient{} + this.Credentials = credentials + return &this +} + +// NewOpenIDProviderManualPostBodyOidcProviderClientWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProviderClient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderManualPostBodyOidcProviderClientWithDefaults() *OpenIDProviderManualPostBodyOidcProviderClient { + this := OpenIDProviderManualPostBodyOidcProviderClient{} + return &this +} + +// GetCredentials returns the Credentials field value +func (o *OpenIDProviderManualPostBodyOidcProviderClient) GetCredentials() OpenIDProviderManualPostBodyOidcProviderClientCredentials { + if o == nil { + var ret OpenIDProviderManualPostBodyOidcProviderClientCredentials + return ret + } + + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProviderClient) GetCredentialsOk() (*OpenIDProviderManualPostBodyOidcProviderClientCredentials, bool) { + if o == nil { + return nil, false + } + return &o.Credentials, true +} + +// SetCredentials sets field value +func (o *OpenIDProviderManualPostBodyOidcProviderClient) SetCredentials(v OpenIDProviderManualPostBodyOidcProviderClientCredentials) { + o.Credentials = v +} + +func (o OpenIDProviderManualPostBodyOidcProviderClient) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderManualPostBodyOidcProviderClient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["credentials"] = o.Credentials + return toSerialize, nil +} + +type NullableOpenIDProviderManualPostBodyOidcProviderClient struct { + value *OpenIDProviderManualPostBodyOidcProviderClient + isSet bool +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClient) Get() *OpenIDProviderManualPostBodyOidcProviderClient { + return v.value +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClient) Set(val *OpenIDProviderManualPostBodyOidcProviderClient) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClient) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderManualPostBodyOidcProviderClient(val *OpenIDProviderManualPostBodyOidcProviderClient) *NullableOpenIDProviderManualPostBodyOidcProviderClient { + return &NullableOpenIDProviderManualPostBodyOidcProviderClient{value: val, isSet: true} +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_manual_post_body_oidc_provider_client_credentials.go b/idp/model_open_id_provider_manual_post_body_oidc_provider_client_credentials.go new file mode 100644 index 0000000..8afb8d5 --- /dev/null +++ b/idp/model_open_id_provider_manual_post_body_oidc_provider_client_credentials.go @@ -0,0 +1,144 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderManualPostBodyOidcProviderClientCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderManualPostBodyOidcProviderClientCredentials{} + +// OpenIDProviderManualPostBodyOidcProviderClientCredentials struct for OpenIDProviderManualPostBodyOidcProviderClientCredentials +type OpenIDProviderManualPostBodyOidcProviderClientCredentials struct { + Id string `json:"id"` + Secret string `json:"secret"` +} + +// NewOpenIDProviderManualPostBodyOidcProviderClientCredentials instantiates a new OpenIDProviderManualPostBodyOidcProviderClientCredentials object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderManualPostBodyOidcProviderClientCredentials(id string, secret string) *OpenIDProviderManualPostBodyOidcProviderClientCredentials { + this := OpenIDProviderManualPostBodyOidcProviderClientCredentials{} + this.Id = id + this.Secret = secret + return &this +} + +// NewOpenIDProviderManualPostBodyOidcProviderClientCredentialsWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProviderClientCredentials object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderManualPostBodyOidcProviderClientCredentialsWithDefaults() *OpenIDProviderManualPostBodyOidcProviderClientCredentials { + this := OpenIDProviderManualPostBodyOidcProviderClientCredentials{} + return &this +} + +// GetId returns the Id field value +func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) SetId(v string) { + o.Id = v +} + +// GetSecret returns the Secret field value +func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *OpenIDProviderManualPostBodyOidcProviderClientCredentials) SetSecret(v string) { + o.Secret = v +} + +func (o OpenIDProviderManualPostBodyOidcProviderClientCredentials) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderManualPostBodyOidcProviderClientCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["secret"] = o.Secret + return toSerialize, nil +} + +type NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials struct { + value *OpenIDProviderManualPostBodyOidcProviderClientCredentials + isSet bool +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials) Get() *OpenIDProviderManualPostBodyOidcProviderClientCredentials { + return v.value +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials) Set(val *OpenIDProviderManualPostBodyOidcProviderClientCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderManualPostBodyOidcProviderClientCredentials(val *OpenIDProviderManualPostBodyOidcProviderClientCredentials) *NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials { + return &NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials{value: val, isSet: true} +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderClientCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_manual_post_body_oidc_provider_urls.go b/idp/model_open_id_provider_manual_post_body_oidc_provider_urls.go new file mode 100644 index 0000000..69d0eb5 --- /dev/null +++ b/idp/model_open_id_provider_manual_post_body_oidc_provider_urls.go @@ -0,0 +1,171 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderManualPostBodyOidcProviderUrls type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderManualPostBodyOidcProviderUrls{} + +// OpenIDProviderManualPostBodyOidcProviderUrls struct for OpenIDProviderManualPostBodyOidcProviderUrls +type OpenIDProviderManualPostBodyOidcProviderUrls struct { + Authorize string `json:"authorize"` + Token string `json:"token"` + Userinfo string `json:"userinfo"` +} + +// NewOpenIDProviderManualPostBodyOidcProviderUrls instantiates a new OpenIDProviderManualPostBodyOidcProviderUrls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderManualPostBodyOidcProviderUrls(authorize string, token string, userinfo string) *OpenIDProviderManualPostBodyOidcProviderUrls { + this := OpenIDProviderManualPostBodyOidcProviderUrls{} + this.Authorize = authorize + this.Token = token + this.Userinfo = userinfo + return &this +} + +// NewOpenIDProviderManualPostBodyOidcProviderUrlsWithDefaults instantiates a new OpenIDProviderManualPostBodyOidcProviderUrls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderManualPostBodyOidcProviderUrlsWithDefaults() *OpenIDProviderManualPostBodyOidcProviderUrls { + this := OpenIDProviderManualPostBodyOidcProviderUrls{} + return &this +} + +// GetAuthorize returns the Authorize field value +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetAuthorize() string { + if o == nil { + var ret string + return ret + } + + return o.Authorize +} + +// GetAuthorizeOk returns a tuple with the Authorize field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetAuthorizeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Authorize, true +} + +// SetAuthorize sets field value +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) SetAuthorize(v string) { + o.Authorize = v +} + +// GetToken returns the Token field value +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetToken() string { + if o == nil { + var ret string + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) SetToken(v string) { + o.Token = v +} + +// GetUserinfo returns the Userinfo field value +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetUserinfo() string { + if o == nil { + var ret string + return ret + } + + return o.Userinfo +} + +// GetUserinfoOk returns a tuple with the Userinfo field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) GetUserinfoOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Userinfo, true +} + +// SetUserinfo sets field value +func (o *OpenIDProviderManualPostBodyOidcProviderUrls) SetUserinfo(v string) { + o.Userinfo = v +} + +func (o OpenIDProviderManualPostBodyOidcProviderUrls) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderManualPostBodyOidcProviderUrls) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["authorize"] = o.Authorize + toSerialize["token"] = o.Token + toSerialize["userinfo"] = o.Userinfo + return toSerialize, nil +} + +type NullableOpenIDProviderManualPostBodyOidcProviderUrls struct { + value *OpenIDProviderManualPostBodyOidcProviderUrls + isSet bool +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderUrls) Get() *OpenIDProviderManualPostBodyOidcProviderUrls { + return v.value +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderUrls) Set(val *OpenIDProviderManualPostBodyOidcProviderUrls) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderUrls) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderUrls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderManualPostBodyOidcProviderUrls(val *OpenIDProviderManualPostBodyOidcProviderUrls) *NullableOpenIDProviderManualPostBodyOidcProviderUrls { + return &NullableOpenIDProviderManualPostBodyOidcProviderUrls{value: val, isSet: true} +} + +func (v NullableOpenIDProviderManualPostBodyOidcProviderUrls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderManualPostBodyOidcProviderUrls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_manual_post_body_type.go b/idp/model_open_id_provider_manual_post_body_type.go new file mode 100644 index 0000000..75f7068 --- /dev/null +++ b/idp/model_open_id_provider_manual_post_body_type.go @@ -0,0 +1,153 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderManualPostBodyType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderManualPostBodyType{} + +// OpenIDProviderManualPostBodyType struct for OpenIDProviderManualPostBodyType +type OpenIDProviderManualPostBodyType struct { + Description *string `json:"description,omitempty"` + Name string `json:"name"` +} + +// NewOpenIDProviderManualPostBodyType instantiates a new OpenIDProviderManualPostBodyType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderManualPostBodyType(name string) *OpenIDProviderManualPostBodyType { + this := OpenIDProviderManualPostBodyType{} + this.Name = name + return &this +} + +// NewOpenIDProviderManualPostBodyTypeWithDefaults instantiates a new OpenIDProviderManualPostBodyType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderManualPostBodyTypeWithDefaults() *OpenIDProviderManualPostBodyType { + this := OpenIDProviderManualPostBodyType{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *OpenIDProviderManualPostBodyType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *OpenIDProviderManualPostBodyType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *OpenIDProviderManualPostBodyType) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *OpenIDProviderManualPostBodyType) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *OpenIDProviderManualPostBodyType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *OpenIDProviderManualPostBodyType) SetName(v string) { + o.Name = v +} + +func (o OpenIDProviderManualPostBodyType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderManualPostBodyType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableOpenIDProviderManualPostBodyType struct { + value *OpenIDProviderManualPostBodyType + isSet bool +} + +func (v NullableOpenIDProviderManualPostBodyType) Get() *OpenIDProviderManualPostBodyType { + return v.value +} + +func (v *NullableOpenIDProviderManualPostBodyType) Set(val *OpenIDProviderManualPostBodyType) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderManualPostBodyType) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderManualPostBodyType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderManualPostBodyType(val *OpenIDProviderManualPostBodyType) *NullableOpenIDProviderManualPostBodyType { + return &NullableOpenIDProviderManualPostBodyType{value: val, isSet: true} +} + +func (v NullableOpenIDProviderManualPostBodyType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderManualPostBodyType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_patch.go b/idp/model_open_id_provider_patch.go new file mode 100644 index 0000000..df8513a --- /dev/null +++ b/idp/model_open_id_provider_patch.go @@ -0,0 +1,270 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderPatch{} + +// OpenIDProviderPatch struct for OpenIDProviderPatch +type OpenIDProviderPatch struct { + Name *string `json:"name,omitempty"` + Type *SamlProviderPatchType `json:"type,omitempty"` + OidcProvider *OpenIDProviderPatchOidcProvider `json:"oidc_provider,omitempty"` + AllowUntrustedCertificates *bool `json:"allow_untrusted_certificates,omitempty"` + LoginDisabled *bool `json:"login_disabled,omitempty"` +} + +// NewOpenIDProviderPatch instantiates a new OpenIDProviderPatch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderPatch() *OpenIDProviderPatch { + this := OpenIDProviderPatch{} + return &this +} + +// NewOpenIDProviderPatchWithDefaults instantiates a new OpenIDProviderPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderPatchWithDefaults() *OpenIDProviderPatch { + this := OpenIDProviderPatch{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OpenIDProviderPatch) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatch) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *OpenIDProviderPatch) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *OpenIDProviderPatch) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *OpenIDProviderPatch) GetType() SamlProviderPatchType { + if o == nil || IsNil(o.Type) { + var ret SamlProviderPatchType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatch) GetTypeOk() (*SamlProviderPatchType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *OpenIDProviderPatch) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given SamlProviderPatchType and assigns it to the Type field. +func (o *OpenIDProviderPatch) SetType(v SamlProviderPatchType) { + o.Type = &v +} + +// GetOidcProvider returns the OidcProvider field value if set, zero value otherwise. +func (o *OpenIDProviderPatch) GetOidcProvider() OpenIDProviderPatchOidcProvider { + if o == nil || IsNil(o.OidcProvider) { + var ret OpenIDProviderPatchOidcProvider + return ret + } + return *o.OidcProvider +} + +// GetOidcProviderOk returns a tuple with the OidcProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatch) GetOidcProviderOk() (*OpenIDProviderPatchOidcProvider, bool) { + if o == nil || IsNil(o.OidcProvider) { + return nil, false + } + return o.OidcProvider, true +} + +// HasOidcProvider returns a boolean if a field has been set. +func (o *OpenIDProviderPatch) HasOidcProvider() bool { + if o != nil && !IsNil(o.OidcProvider) { + return true + } + + return false +} + +// SetOidcProvider gets a reference to the given OpenIDProviderPatchOidcProvider and assigns it to the OidcProvider field. +func (o *OpenIDProviderPatch) SetOidcProvider(v OpenIDProviderPatchOidcProvider) { + o.OidcProvider = &v +} + +// GetAllowUntrustedCertificates returns the AllowUntrustedCertificates field value if set, zero value otherwise. +func (o *OpenIDProviderPatch) GetAllowUntrustedCertificates() bool { + if o == nil || IsNil(o.AllowUntrustedCertificates) { + var ret bool + return ret + } + return *o.AllowUntrustedCertificates +} + +// GetAllowUntrustedCertificatesOk returns a tuple with the AllowUntrustedCertificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatch) GetAllowUntrustedCertificatesOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUntrustedCertificates) { + return nil, false + } + return o.AllowUntrustedCertificates, true +} + +// HasAllowUntrustedCertificates returns a boolean if a field has been set. +func (o *OpenIDProviderPatch) HasAllowUntrustedCertificates() bool { + if o != nil && !IsNil(o.AllowUntrustedCertificates) { + return true + } + + return false +} + +// SetAllowUntrustedCertificates gets a reference to the given bool and assigns it to the AllowUntrustedCertificates field. +func (o *OpenIDProviderPatch) SetAllowUntrustedCertificates(v bool) { + o.AllowUntrustedCertificates = &v +} + +// GetLoginDisabled returns the LoginDisabled field value if set, zero value otherwise. +func (o *OpenIDProviderPatch) GetLoginDisabled() bool { + if o == nil || IsNil(o.LoginDisabled) { + var ret bool + return ret + } + return *o.LoginDisabled +} + +// GetLoginDisabledOk returns a tuple with the LoginDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatch) GetLoginDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.LoginDisabled) { + return nil, false + } + return o.LoginDisabled, true +} + +// HasLoginDisabled returns a boolean if a field has been set. +func (o *OpenIDProviderPatch) HasLoginDisabled() bool { + if o != nil && !IsNil(o.LoginDisabled) { + return true + } + + return false +} + +// SetLoginDisabled gets a reference to the given bool and assigns it to the LoginDisabled field. +func (o *OpenIDProviderPatch) SetLoginDisabled(v bool) { + o.LoginDisabled = &v +} + +func (o OpenIDProviderPatch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.OidcProvider) { + toSerialize["oidc_provider"] = o.OidcProvider + } + if !IsNil(o.AllowUntrustedCertificates) { + toSerialize["allow_untrusted_certificates"] = o.AllowUntrustedCertificates + } + if !IsNil(o.LoginDisabled) { + toSerialize["login_disabled"] = o.LoginDisabled + } + return toSerialize, nil +} + +type NullableOpenIDProviderPatch struct { + value *OpenIDProviderPatch + isSet bool +} + +func (v NullableOpenIDProviderPatch) Get() *OpenIDProviderPatch { + return v.value +} + +func (v *NullableOpenIDProviderPatch) Set(val *OpenIDProviderPatch) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderPatch(val *OpenIDProviderPatch) *NullableOpenIDProviderPatch { + return &NullableOpenIDProviderPatch{value: val, isSet: true} +} + +func (v NullableOpenIDProviderPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_patch_oidc_provider.go b/idp/model_open_id_provider_patch_oidc_provider.go new file mode 100644 index 0000000..870f29a --- /dev/null +++ b/idp/model_open_id_provider_patch_oidc_provider.go @@ -0,0 +1,270 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderPatchOidcProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderPatchOidcProvider{} + +// OpenIDProviderPatchOidcProvider struct for OpenIDProviderPatchOidcProvider +type OpenIDProviderPatchOidcProvider struct { + Client *OpenIDProviderPatchOidcProviderClient `json:"client,omitempty"` + Issuer *string `json:"issuer,omitempty"` + Urls *OpenIDProviderPatchOidcProviderUrls `json:"urls,omitempty"` + GroupScope *string `json:"group_scope,omitempty"` + ClaimsMapping *OpenIDProviderManualPostBodyOidcProviderClaimsMapping `json:"claims_mapping,omitempty"` +} + +// NewOpenIDProviderPatchOidcProvider instantiates a new OpenIDProviderPatchOidcProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderPatchOidcProvider() *OpenIDProviderPatchOidcProvider { + this := OpenIDProviderPatchOidcProvider{} + return &this +} + +// NewOpenIDProviderPatchOidcProviderWithDefaults instantiates a new OpenIDProviderPatchOidcProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderPatchOidcProviderWithDefaults() *OpenIDProviderPatchOidcProvider { + this := OpenIDProviderPatchOidcProvider{} + return &this +} + +// GetClient returns the Client field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProvider) GetClient() OpenIDProviderPatchOidcProviderClient { + if o == nil || IsNil(o.Client) { + var ret OpenIDProviderPatchOidcProviderClient + return ret + } + return *o.Client +} + +// GetClientOk returns a tuple with the Client field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProvider) GetClientOk() (*OpenIDProviderPatchOidcProviderClient, bool) { + if o == nil || IsNil(o.Client) { + return nil, false + } + return o.Client, true +} + +// HasClient returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProvider) HasClient() bool { + if o != nil && !IsNil(o.Client) { + return true + } + + return false +} + +// SetClient gets a reference to the given OpenIDProviderPatchOidcProviderClient and assigns it to the Client field. +func (o *OpenIDProviderPatchOidcProvider) SetClient(v OpenIDProviderPatchOidcProviderClient) { + o.Client = &v +} + +// GetIssuer returns the Issuer field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProvider) GetIssuer() string { + if o == nil || IsNil(o.Issuer) { + var ret string + return ret + } + return *o.Issuer +} + +// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProvider) GetIssuerOk() (*string, bool) { + if o == nil || IsNil(o.Issuer) { + return nil, false + } + return o.Issuer, true +} + +// HasIssuer returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProvider) HasIssuer() bool { + if o != nil && !IsNil(o.Issuer) { + return true + } + + return false +} + +// SetIssuer gets a reference to the given string and assigns it to the Issuer field. +func (o *OpenIDProviderPatchOidcProvider) SetIssuer(v string) { + o.Issuer = &v +} + +// GetUrls returns the Urls field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProvider) GetUrls() OpenIDProviderPatchOidcProviderUrls { + if o == nil || IsNil(o.Urls) { + var ret OpenIDProviderPatchOidcProviderUrls + return ret + } + return *o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProvider) GetUrlsOk() (*OpenIDProviderPatchOidcProviderUrls, bool) { + if o == nil || IsNil(o.Urls) { + return nil, false + } + return o.Urls, true +} + +// HasUrls returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProvider) HasUrls() bool { + if o != nil && !IsNil(o.Urls) { + return true + } + + return false +} + +// SetUrls gets a reference to the given OpenIDProviderPatchOidcProviderUrls and assigns it to the Urls field. +func (o *OpenIDProviderPatchOidcProvider) SetUrls(v OpenIDProviderPatchOidcProviderUrls) { + o.Urls = &v +} + +// GetGroupScope returns the GroupScope field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProvider) GetGroupScope() string { + if o == nil || IsNil(o.GroupScope) { + var ret string + return ret + } + return *o.GroupScope +} + +// GetGroupScopeOk returns a tuple with the GroupScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProvider) GetGroupScopeOk() (*string, bool) { + if o == nil || IsNil(o.GroupScope) { + return nil, false + } + return o.GroupScope, true +} + +// HasGroupScope returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProvider) HasGroupScope() bool { + if o != nil && !IsNil(o.GroupScope) { + return true + } + + return false +} + +// SetGroupScope gets a reference to the given string and assigns it to the GroupScope field. +func (o *OpenIDProviderPatchOidcProvider) SetGroupScope(v string) { + o.GroupScope = &v +} + +// GetClaimsMapping returns the ClaimsMapping field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProvider) GetClaimsMapping() OpenIDProviderManualPostBodyOidcProviderClaimsMapping { + if o == nil || IsNil(o.ClaimsMapping) { + var ret OpenIDProviderManualPostBodyOidcProviderClaimsMapping + return ret + } + return *o.ClaimsMapping +} + +// GetClaimsMappingOk returns a tuple with the ClaimsMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProvider) GetClaimsMappingOk() (*OpenIDProviderManualPostBodyOidcProviderClaimsMapping, bool) { + if o == nil || IsNil(o.ClaimsMapping) { + return nil, false + } + return o.ClaimsMapping, true +} + +// HasClaimsMapping returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProvider) HasClaimsMapping() bool { + if o != nil && !IsNil(o.ClaimsMapping) { + return true + } + + return false +} + +// SetClaimsMapping gets a reference to the given OpenIDProviderManualPostBodyOidcProviderClaimsMapping and assigns it to the ClaimsMapping field. +func (o *OpenIDProviderPatchOidcProvider) SetClaimsMapping(v OpenIDProviderManualPostBodyOidcProviderClaimsMapping) { + o.ClaimsMapping = &v +} + +func (o OpenIDProviderPatchOidcProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderPatchOidcProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Client) { + toSerialize["client"] = o.Client + } + if !IsNil(o.Issuer) { + toSerialize["issuer"] = o.Issuer + } + if !IsNil(o.Urls) { + toSerialize["urls"] = o.Urls + } + if !IsNil(o.GroupScope) { + toSerialize["group_scope"] = o.GroupScope + } + if !IsNil(o.ClaimsMapping) { + toSerialize["claims_mapping"] = o.ClaimsMapping + } + return toSerialize, nil +} + +type NullableOpenIDProviderPatchOidcProvider struct { + value *OpenIDProviderPatchOidcProvider + isSet bool +} + +func (v NullableOpenIDProviderPatchOidcProvider) Get() *OpenIDProviderPatchOidcProvider { + return v.value +} + +func (v *NullableOpenIDProviderPatchOidcProvider) Set(val *OpenIDProviderPatchOidcProvider) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderPatchOidcProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderPatchOidcProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderPatchOidcProvider(val *OpenIDProviderPatchOidcProvider) *NullableOpenIDProviderPatchOidcProvider { + return &NullableOpenIDProviderPatchOidcProvider{value: val, isSet: true} +} + +func (v NullableOpenIDProviderPatchOidcProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderPatchOidcProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_patch_oidc_provider_client.go b/idp/model_open_id_provider_patch_oidc_provider_client.go new file mode 100644 index 0000000..a9db101 --- /dev/null +++ b/idp/model_open_id_provider_patch_oidc_provider_client.go @@ -0,0 +1,234 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderPatchOidcProviderClient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderPatchOidcProviderClient{} + +// OpenIDProviderPatchOidcProviderClient struct for OpenIDProviderPatchOidcProviderClient +type OpenIDProviderPatchOidcProviderClient struct { + Credentials *OpenIDProviderPatchOidcProviderClientCredentials `json:"credentials,omitempty"` + Urls *OpenIDProviderPatchOidcProviderClientUrls `json:"urls,omitempty"` + Registration *OpenIDProviderPatchOidcProviderClientRegistration `json:"registration,omitempty"` + Metadata *OpenIDProviderDynamicPostBodyOidcProviderClientMetadata `json:"metadata,omitempty"` +} + +// NewOpenIDProviderPatchOidcProviderClient instantiates a new OpenIDProviderPatchOidcProviderClient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderPatchOidcProviderClient() *OpenIDProviderPatchOidcProviderClient { + this := OpenIDProviderPatchOidcProviderClient{} + return &this +} + +// NewOpenIDProviderPatchOidcProviderClientWithDefaults instantiates a new OpenIDProviderPatchOidcProviderClient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderPatchOidcProviderClientWithDefaults() *OpenIDProviderPatchOidcProviderClient { + this := OpenIDProviderPatchOidcProviderClient{} + return &this +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderClient) GetCredentials() OpenIDProviderPatchOidcProviderClientCredentials { + if o == nil || IsNil(o.Credentials) { + var ret OpenIDProviderPatchOidcProviderClientCredentials + return ret + } + return *o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderClient) GetCredentialsOk() (*OpenIDProviderPatchOidcProviderClientCredentials, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderClient) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given OpenIDProviderPatchOidcProviderClientCredentials and assigns it to the Credentials field. +func (o *OpenIDProviderPatchOidcProviderClient) SetCredentials(v OpenIDProviderPatchOidcProviderClientCredentials) { + o.Credentials = &v +} + +// GetUrls returns the Urls field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderClient) GetUrls() OpenIDProviderPatchOidcProviderClientUrls { + if o == nil || IsNil(o.Urls) { + var ret OpenIDProviderPatchOidcProviderClientUrls + return ret + } + return *o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderClient) GetUrlsOk() (*OpenIDProviderPatchOidcProviderClientUrls, bool) { + if o == nil || IsNil(o.Urls) { + return nil, false + } + return o.Urls, true +} + +// HasUrls returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderClient) HasUrls() bool { + if o != nil && !IsNil(o.Urls) { + return true + } + + return false +} + +// SetUrls gets a reference to the given OpenIDProviderPatchOidcProviderClientUrls and assigns it to the Urls field. +func (o *OpenIDProviderPatchOidcProviderClient) SetUrls(v OpenIDProviderPatchOidcProviderClientUrls) { + o.Urls = &v +} + +// GetRegistration returns the Registration field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderClient) GetRegistration() OpenIDProviderPatchOidcProviderClientRegistration { + if o == nil || IsNil(o.Registration) { + var ret OpenIDProviderPatchOidcProviderClientRegistration + return ret + } + return *o.Registration +} + +// GetRegistrationOk returns a tuple with the Registration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderClient) GetRegistrationOk() (*OpenIDProviderPatchOidcProviderClientRegistration, bool) { + if o == nil || IsNil(o.Registration) { + return nil, false + } + return o.Registration, true +} + +// HasRegistration returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderClient) HasRegistration() bool { + if o != nil && !IsNil(o.Registration) { + return true + } + + return false +} + +// SetRegistration gets a reference to the given OpenIDProviderPatchOidcProviderClientRegistration and assigns it to the Registration field. +func (o *OpenIDProviderPatchOidcProviderClient) SetRegistration(v OpenIDProviderPatchOidcProviderClientRegistration) { + o.Registration = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderClient) GetMetadata() OpenIDProviderDynamicPostBodyOidcProviderClientMetadata { + if o == nil || IsNil(o.Metadata) { + var ret OpenIDProviderDynamicPostBodyOidcProviderClientMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderClient) GetMetadataOk() (*OpenIDProviderDynamicPostBodyOidcProviderClientMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderClient) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given OpenIDProviderDynamicPostBodyOidcProviderClientMetadata and assigns it to the Metadata field. +func (o *OpenIDProviderPatchOidcProviderClient) SetMetadata(v OpenIDProviderDynamicPostBodyOidcProviderClientMetadata) { + o.Metadata = &v +} + +func (o OpenIDProviderPatchOidcProviderClient) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderPatchOidcProviderClient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + if !IsNil(o.Urls) { + toSerialize["urls"] = o.Urls + } + if !IsNil(o.Registration) { + toSerialize["registration"] = o.Registration + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableOpenIDProviderPatchOidcProviderClient struct { + value *OpenIDProviderPatchOidcProviderClient + isSet bool +} + +func (v NullableOpenIDProviderPatchOidcProviderClient) Get() *OpenIDProviderPatchOidcProviderClient { + return v.value +} + +func (v *NullableOpenIDProviderPatchOidcProviderClient) Set(val *OpenIDProviderPatchOidcProviderClient) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderPatchOidcProviderClient) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderPatchOidcProviderClient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderPatchOidcProviderClient(val *OpenIDProviderPatchOidcProviderClient) *NullableOpenIDProviderPatchOidcProviderClient { + return &NullableOpenIDProviderPatchOidcProviderClient{value: val, isSet: true} +} + +func (v NullableOpenIDProviderPatchOidcProviderClient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderPatchOidcProviderClient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_patch_oidc_provider_client_credentials.go b/idp/model_open_id_provider_patch_oidc_provider_client_credentials.go new file mode 100644 index 0000000..4e5376f --- /dev/null +++ b/idp/model_open_id_provider_patch_oidc_provider_client_credentials.go @@ -0,0 +1,162 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderPatchOidcProviderClientCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderPatchOidcProviderClientCredentials{} + +// OpenIDProviderPatchOidcProviderClientCredentials struct for OpenIDProviderPatchOidcProviderClientCredentials +type OpenIDProviderPatchOidcProviderClientCredentials struct { + Id *string `json:"id,omitempty"` + Secret *string `json:"secret,omitempty"` +} + +// NewOpenIDProviderPatchOidcProviderClientCredentials instantiates a new OpenIDProviderPatchOidcProviderClientCredentials object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderPatchOidcProviderClientCredentials() *OpenIDProviderPatchOidcProviderClientCredentials { + this := OpenIDProviderPatchOidcProviderClientCredentials{} + return &this +} + +// NewOpenIDProviderPatchOidcProviderClientCredentialsWithDefaults instantiates a new OpenIDProviderPatchOidcProviderClientCredentials object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderPatchOidcProviderClientCredentialsWithDefaults() *OpenIDProviderPatchOidcProviderClientCredentials { + this := OpenIDProviderPatchOidcProviderClientCredentials{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderClientCredentials) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderClientCredentials) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderClientCredentials) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *OpenIDProviderPatchOidcProviderClientCredentials) SetId(v string) { + o.Id = &v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderClientCredentials) GetSecret() string { + if o == nil || IsNil(o.Secret) { + var ret string + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderClientCredentials) GetSecretOk() (*string, bool) { + if o == nil || IsNil(o.Secret) { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderClientCredentials) HasSecret() bool { + if o != nil && !IsNil(o.Secret) { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *OpenIDProviderPatchOidcProviderClientCredentials) SetSecret(v string) { + o.Secret = &v +} + +func (o OpenIDProviderPatchOidcProviderClientCredentials) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderPatchOidcProviderClientCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Secret) { + toSerialize["secret"] = o.Secret + } + return toSerialize, nil +} + +type NullableOpenIDProviderPatchOidcProviderClientCredentials struct { + value *OpenIDProviderPatchOidcProviderClientCredentials + isSet bool +} + +func (v NullableOpenIDProviderPatchOidcProviderClientCredentials) Get() *OpenIDProviderPatchOidcProviderClientCredentials { + return v.value +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientCredentials) Set(val *OpenIDProviderPatchOidcProviderClientCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderPatchOidcProviderClientCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderPatchOidcProviderClientCredentials(val *OpenIDProviderPatchOidcProviderClientCredentials) *NullableOpenIDProviderPatchOidcProviderClientCredentials { + return &NullableOpenIDProviderPatchOidcProviderClientCredentials{value: val, isSet: true} +} + +func (v NullableOpenIDProviderPatchOidcProviderClientCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_patch_oidc_provider_client_registration.go b/idp/model_open_id_provider_patch_oidc_provider_client_registration.go new file mode 100644 index 0000000..781e471 --- /dev/null +++ b/idp/model_open_id_provider_patch_oidc_provider_client_registration.go @@ -0,0 +1,126 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderPatchOidcProviderClientRegistration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderPatchOidcProviderClientRegistration{} + +// OpenIDProviderPatchOidcProviderClientRegistration struct for OpenIDProviderPatchOidcProviderClientRegistration +type OpenIDProviderPatchOidcProviderClientRegistration struct { + Authorization *string `json:"authorization,omitempty"` +} + +// NewOpenIDProviderPatchOidcProviderClientRegistration instantiates a new OpenIDProviderPatchOidcProviderClientRegistration object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderPatchOidcProviderClientRegistration() *OpenIDProviderPatchOidcProviderClientRegistration { + this := OpenIDProviderPatchOidcProviderClientRegistration{} + return &this +} + +// NewOpenIDProviderPatchOidcProviderClientRegistrationWithDefaults instantiates a new OpenIDProviderPatchOidcProviderClientRegistration object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderPatchOidcProviderClientRegistrationWithDefaults() *OpenIDProviderPatchOidcProviderClientRegistration { + this := OpenIDProviderPatchOidcProviderClientRegistration{} + return &this +} + +// GetAuthorization returns the Authorization field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderClientRegistration) GetAuthorization() string { + if o == nil || IsNil(o.Authorization) { + var ret string + return ret + } + return *o.Authorization +} + +// GetAuthorizationOk returns a tuple with the Authorization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderClientRegistration) GetAuthorizationOk() (*string, bool) { + if o == nil || IsNil(o.Authorization) { + return nil, false + } + return o.Authorization, true +} + +// HasAuthorization returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderClientRegistration) HasAuthorization() bool { + if o != nil && !IsNil(o.Authorization) { + return true + } + + return false +} + +// SetAuthorization gets a reference to the given string and assigns it to the Authorization field. +func (o *OpenIDProviderPatchOidcProviderClientRegistration) SetAuthorization(v string) { + o.Authorization = &v +} + +func (o OpenIDProviderPatchOidcProviderClientRegistration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderPatchOidcProviderClientRegistration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Authorization) { + toSerialize["authorization"] = o.Authorization + } + return toSerialize, nil +} + +type NullableOpenIDProviderPatchOidcProviderClientRegistration struct { + value *OpenIDProviderPatchOidcProviderClientRegistration + isSet bool +} + +func (v NullableOpenIDProviderPatchOidcProviderClientRegistration) Get() *OpenIDProviderPatchOidcProviderClientRegistration { + return v.value +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientRegistration) Set(val *OpenIDProviderPatchOidcProviderClientRegistration) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderPatchOidcProviderClientRegistration) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientRegistration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderPatchOidcProviderClientRegistration(val *OpenIDProviderPatchOidcProviderClientRegistration) *NullableOpenIDProviderPatchOidcProviderClientRegistration { + return &NullableOpenIDProviderPatchOidcProviderClientRegistration{value: val, isSet: true} +} + +func (v NullableOpenIDProviderPatchOidcProviderClientRegistration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientRegistration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_patch_oidc_provider_client_urls.go b/idp/model_open_id_provider_patch_oidc_provider_client_urls.go new file mode 100644 index 0000000..91e06f7 --- /dev/null +++ b/idp/model_open_id_provider_patch_oidc_provider_client_urls.go @@ -0,0 +1,126 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderPatchOidcProviderClientUrls type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderPatchOidcProviderClientUrls{} + +// OpenIDProviderPatchOidcProviderClientUrls struct for OpenIDProviderPatchOidcProviderClientUrls +type OpenIDProviderPatchOidcProviderClientUrls struct { + Register *string `json:"register,omitempty"` +} + +// NewOpenIDProviderPatchOidcProviderClientUrls instantiates a new OpenIDProviderPatchOidcProviderClientUrls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderPatchOidcProviderClientUrls() *OpenIDProviderPatchOidcProviderClientUrls { + this := OpenIDProviderPatchOidcProviderClientUrls{} + return &this +} + +// NewOpenIDProviderPatchOidcProviderClientUrlsWithDefaults instantiates a new OpenIDProviderPatchOidcProviderClientUrls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderPatchOidcProviderClientUrlsWithDefaults() *OpenIDProviderPatchOidcProviderClientUrls { + this := OpenIDProviderPatchOidcProviderClientUrls{} + return &this +} + +// GetRegister returns the Register field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderClientUrls) GetRegister() string { + if o == nil || IsNil(o.Register) { + var ret string + return ret + } + return *o.Register +} + +// GetRegisterOk returns a tuple with the Register field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderClientUrls) GetRegisterOk() (*string, bool) { + if o == nil || IsNil(o.Register) { + return nil, false + } + return o.Register, true +} + +// HasRegister returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderClientUrls) HasRegister() bool { + if o != nil && !IsNil(o.Register) { + return true + } + + return false +} + +// SetRegister gets a reference to the given string and assigns it to the Register field. +func (o *OpenIDProviderPatchOidcProviderClientUrls) SetRegister(v string) { + o.Register = &v +} + +func (o OpenIDProviderPatchOidcProviderClientUrls) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderPatchOidcProviderClientUrls) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Register) { + toSerialize["register"] = o.Register + } + return toSerialize, nil +} + +type NullableOpenIDProviderPatchOidcProviderClientUrls struct { + value *OpenIDProviderPatchOidcProviderClientUrls + isSet bool +} + +func (v NullableOpenIDProviderPatchOidcProviderClientUrls) Get() *OpenIDProviderPatchOidcProviderClientUrls { + return v.value +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientUrls) Set(val *OpenIDProviderPatchOidcProviderClientUrls) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderPatchOidcProviderClientUrls) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientUrls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderPatchOidcProviderClientUrls(val *OpenIDProviderPatchOidcProviderClientUrls) *NullableOpenIDProviderPatchOidcProviderClientUrls { + return &NullableOpenIDProviderPatchOidcProviderClientUrls{value: val, isSet: true} +} + +func (v NullableOpenIDProviderPatchOidcProviderClientUrls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderPatchOidcProviderClientUrls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_open_id_provider_patch_oidc_provider_urls.go b/idp/model_open_id_provider_patch_oidc_provider_urls.go new file mode 100644 index 0000000..5d7d045 --- /dev/null +++ b/idp/model_open_id_provider_patch_oidc_provider_urls.go @@ -0,0 +1,198 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the OpenIDProviderPatchOidcProviderUrls type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpenIDProviderPatchOidcProviderUrls{} + +// OpenIDProviderPatchOidcProviderUrls struct for OpenIDProviderPatchOidcProviderUrls +type OpenIDProviderPatchOidcProviderUrls struct { + Authorize *string `json:"authorize,omitempty"` + Token *string `json:"token,omitempty"` + Userinfo *string `json:"userinfo,omitempty"` +} + +// NewOpenIDProviderPatchOidcProviderUrls instantiates a new OpenIDProviderPatchOidcProviderUrls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOpenIDProviderPatchOidcProviderUrls() *OpenIDProviderPatchOidcProviderUrls { + this := OpenIDProviderPatchOidcProviderUrls{} + return &this +} + +// NewOpenIDProviderPatchOidcProviderUrlsWithDefaults instantiates a new OpenIDProviderPatchOidcProviderUrls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOpenIDProviderPatchOidcProviderUrlsWithDefaults() *OpenIDProviderPatchOidcProviderUrls { + this := OpenIDProviderPatchOidcProviderUrls{} + return &this +} + +// GetAuthorize returns the Authorize field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderUrls) GetAuthorize() string { + if o == nil || IsNil(o.Authorize) { + var ret string + return ret + } + return *o.Authorize +} + +// GetAuthorizeOk returns a tuple with the Authorize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderUrls) GetAuthorizeOk() (*string, bool) { + if o == nil || IsNil(o.Authorize) { + return nil, false + } + return o.Authorize, true +} + +// HasAuthorize returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderUrls) HasAuthorize() bool { + if o != nil && !IsNil(o.Authorize) { + return true + } + + return false +} + +// SetAuthorize gets a reference to the given string and assigns it to the Authorize field. +func (o *OpenIDProviderPatchOidcProviderUrls) SetAuthorize(v string) { + o.Authorize = &v +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderUrls) GetToken() string { + if o == nil || IsNil(o.Token) { + var ret string + return ret + } + return *o.Token +} + +// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderUrls) GetTokenOk() (*string, bool) { + if o == nil || IsNil(o.Token) { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderUrls) HasToken() bool { + if o != nil && !IsNil(o.Token) { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *OpenIDProviderPatchOidcProviderUrls) SetToken(v string) { + o.Token = &v +} + +// GetUserinfo returns the Userinfo field value if set, zero value otherwise. +func (o *OpenIDProviderPatchOidcProviderUrls) GetUserinfo() string { + if o == nil || IsNil(o.Userinfo) { + var ret string + return ret + } + return *o.Userinfo +} + +// GetUserinfoOk returns a tuple with the Userinfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpenIDProviderPatchOidcProviderUrls) GetUserinfoOk() (*string, bool) { + if o == nil || IsNil(o.Userinfo) { + return nil, false + } + return o.Userinfo, true +} + +// HasUserinfo returns a boolean if a field has been set. +func (o *OpenIDProviderPatchOidcProviderUrls) HasUserinfo() bool { + if o != nil && !IsNil(o.Userinfo) { + return true + } + + return false +} + +// SetUserinfo gets a reference to the given string and assigns it to the Userinfo field. +func (o *OpenIDProviderPatchOidcProviderUrls) SetUserinfo(v string) { + o.Userinfo = &v +} + +func (o OpenIDProviderPatchOidcProviderUrls) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpenIDProviderPatchOidcProviderUrls) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Authorize) { + toSerialize["authorize"] = o.Authorize + } + if !IsNil(o.Token) { + toSerialize["token"] = o.Token + } + if !IsNil(o.Userinfo) { + toSerialize["userinfo"] = o.Userinfo + } + return toSerialize, nil +} + +type NullableOpenIDProviderPatchOidcProviderUrls struct { + value *OpenIDProviderPatchOidcProviderUrls + isSet bool +} + +func (v NullableOpenIDProviderPatchOidcProviderUrls) Get() *OpenIDProviderPatchOidcProviderUrls { + return v.value +} + +func (v *NullableOpenIDProviderPatchOidcProviderUrls) Set(val *OpenIDProviderPatchOidcProviderUrls) { + v.value = val + v.isSet = true +} + +func (v NullableOpenIDProviderPatchOidcProviderUrls) IsSet() bool { + return v.isSet +} + +func (v *NullableOpenIDProviderPatchOidcProviderUrls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpenIDProviderPatchOidcProviderUrls(val *OpenIDProviderPatchOidcProviderUrls) *NullableOpenIDProviderPatchOidcProviderUrls { + return &NullableOpenIDProviderPatchOidcProviderUrls{value: val, isSet: true} +} + +func (v NullableOpenIDProviderPatchOidcProviderUrls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpenIDProviderPatchOidcProviderUrls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_get.go b/idp/model_saml_provider_get.go new file mode 100644 index 0000000..cc45f7e --- /dev/null +++ b/idp/model_saml_provider_get.go @@ -0,0 +1,324 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderGet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderGet{} + +// SamlProviderGet struct for SamlProviderGet +type SamlProviderGet struct { + Name string `json:"name"` + OrgId string `json:"org_id"` + Saml SamlProviderPostBodySaml `json:"saml"` + ServiceProvider SamlProviderPostBodyServiceProvider `json:"service_provider"` + LoginDisabled *bool `json:"login_disabled,omitempty"` + ArcNamespace *string `json:"arc_namespace,omitempty"` + ProviderId string `json:"provider_id"` + Type SamlProviderPostBodyType `json:"type"` +} + +// NewSamlProviderGet instantiates a new SamlProviderGet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderGet(name string, orgId string, saml SamlProviderPostBodySaml, serviceProvider SamlProviderPostBodyServiceProvider, providerId string, type_ SamlProviderPostBodyType) *SamlProviderGet { + this := SamlProviderGet{} + this.Name = name + this.OrgId = orgId + this.Saml = saml + this.ServiceProvider = serviceProvider + this.ProviderId = providerId + this.Type = type_ + return &this +} + +// NewSamlProviderGetWithDefaults instantiates a new SamlProviderGet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderGetWithDefaults() *SamlProviderGet { + this := SamlProviderGet{} + return &this +} + +// GetName returns the Name field value +func (o *SamlProviderGet) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SamlProviderGet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SamlProviderGet) SetName(v string) { + o.Name = v +} + +// GetOrgId returns the OrgId field value +func (o *SamlProviderGet) GetOrgId() string { + if o == nil { + var ret string + return ret + } + + return o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value +// and a boolean to check if the value has been set. +func (o *SamlProviderGet) GetOrgIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgId, true +} + +// SetOrgId sets field value +func (o *SamlProviderGet) SetOrgId(v string) { + o.OrgId = v +} + +// GetSaml returns the Saml field value +func (o *SamlProviderGet) GetSaml() SamlProviderPostBodySaml { + if o == nil { + var ret SamlProviderPostBodySaml + return ret + } + + return o.Saml +} + +// GetSamlOk returns a tuple with the Saml field value +// and a boolean to check if the value has been set. +func (o *SamlProviderGet) GetSamlOk() (*SamlProviderPostBodySaml, bool) { + if o == nil { + return nil, false + } + return &o.Saml, true +} + +// SetSaml sets field value +func (o *SamlProviderGet) SetSaml(v SamlProviderPostBodySaml) { + o.Saml = v +} + +// GetServiceProvider returns the ServiceProvider field value +func (o *SamlProviderGet) GetServiceProvider() SamlProviderPostBodyServiceProvider { + if o == nil { + var ret SamlProviderPostBodyServiceProvider + return ret + } + + return o.ServiceProvider +} + +// GetServiceProviderOk returns a tuple with the ServiceProvider field value +// and a boolean to check if the value has been set. +func (o *SamlProviderGet) GetServiceProviderOk() (*SamlProviderPostBodyServiceProvider, bool) { + if o == nil { + return nil, false + } + return &o.ServiceProvider, true +} + +// SetServiceProvider sets field value +func (o *SamlProviderGet) SetServiceProvider(v SamlProviderPostBodyServiceProvider) { + o.ServiceProvider = v +} + +// GetLoginDisabled returns the LoginDisabled field value if set, zero value otherwise. +func (o *SamlProviderGet) GetLoginDisabled() bool { + if o == nil || IsNil(o.LoginDisabled) { + var ret bool + return ret + } + return *o.LoginDisabled +} + +// GetLoginDisabledOk returns a tuple with the LoginDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderGet) GetLoginDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.LoginDisabled) { + return nil, false + } + return o.LoginDisabled, true +} + +// HasLoginDisabled returns a boolean if a field has been set. +func (o *SamlProviderGet) HasLoginDisabled() bool { + if o != nil && !IsNil(o.LoginDisabled) { + return true + } + + return false +} + +// SetLoginDisabled gets a reference to the given bool and assigns it to the LoginDisabled field. +func (o *SamlProviderGet) SetLoginDisabled(v bool) { + o.LoginDisabled = &v +} + +// GetArcNamespace returns the ArcNamespace field value if set, zero value otherwise. +func (o *SamlProviderGet) GetArcNamespace() string { + if o == nil || IsNil(o.ArcNamespace) { + var ret string + return ret + } + return *o.ArcNamespace +} + +// GetArcNamespaceOk returns a tuple with the ArcNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderGet) GetArcNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.ArcNamespace) { + return nil, false + } + return o.ArcNamespace, true +} + +// HasArcNamespace returns a boolean if a field has been set. +func (o *SamlProviderGet) HasArcNamespace() bool { + if o != nil && !IsNil(o.ArcNamespace) { + return true + } + + return false +} + +// SetArcNamespace gets a reference to the given string and assigns it to the ArcNamespace field. +func (o *SamlProviderGet) SetArcNamespace(v string) { + o.ArcNamespace = &v +} + +// GetProviderId returns the ProviderId field value +func (o *SamlProviderGet) GetProviderId() string { + if o == nil { + var ret string + return ret + } + + return o.ProviderId +} + +// GetProviderIdOk returns a tuple with the ProviderId field value +// and a boolean to check if the value has been set. +func (o *SamlProviderGet) GetProviderIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProviderId, true +} + +// SetProviderId sets field value +func (o *SamlProviderGet) SetProviderId(v string) { + o.ProviderId = v +} + +// GetType returns the Type field value +func (o *SamlProviderGet) GetType() SamlProviderPostBodyType { + if o == nil { + var ret SamlProviderPostBodyType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *SamlProviderGet) GetTypeOk() (*SamlProviderPostBodyType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *SamlProviderGet) SetType(v SamlProviderPostBodyType) { + o.Type = v +} + +func (o SamlProviderGet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderGet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["org_id"] = o.OrgId + toSerialize["saml"] = o.Saml + toSerialize["service_provider"] = o.ServiceProvider + if !IsNil(o.LoginDisabled) { + toSerialize["login_disabled"] = o.LoginDisabled + } + if !IsNil(o.ArcNamespace) { + toSerialize["arc_namespace"] = o.ArcNamespace + } + toSerialize["provider_id"] = o.ProviderId + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableSamlProviderGet struct { + value *SamlProviderGet + isSet bool +} + +func (v NullableSamlProviderGet) Get() *SamlProviderGet { + return v.value +} + +func (v *NullableSamlProviderGet) Set(val *SamlProviderGet) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderGet) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderGet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderGet(val *SamlProviderGet) *NullableSamlProviderGet { + return &NullableSamlProviderGet{value: val, isSet: true} +} + +func (v NullableSamlProviderGet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderGet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_patch.go b/idp/model_saml_provider_patch.go new file mode 100644 index 0000000..8ba9849 --- /dev/null +++ b/idp/model_saml_provider_patch.go @@ -0,0 +1,270 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPatch type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPatch{} + +// SamlProviderPatch struct for SamlProviderPatch +type SamlProviderPatch struct { + Name *string `json:"name,omitempty"` + Type *SamlProviderPatchType `json:"type,omitempty"` + ServiceProvider *SamlProviderPatchServiceProvider `json:"service_provider,omitempty"` + Saml *SamlProviderPatchSaml `json:"saml,omitempty"` + LoginDisabled *bool `json:"login_disabled,omitempty"` +} + +// NewSamlProviderPatch instantiates a new SamlProviderPatch object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPatch() *SamlProviderPatch { + this := SamlProviderPatch{} + return &this +} + +// NewSamlProviderPatchWithDefaults instantiates a new SamlProviderPatch object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPatchWithDefaults() *SamlProviderPatch { + this := SamlProviderPatch{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SamlProviderPatch) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatch) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SamlProviderPatch) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SamlProviderPatch) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SamlProviderPatch) GetType() SamlProviderPatchType { + if o == nil || IsNil(o.Type) { + var ret SamlProviderPatchType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatch) GetTypeOk() (*SamlProviderPatchType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *SamlProviderPatch) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given SamlProviderPatchType and assigns it to the Type field. +func (o *SamlProviderPatch) SetType(v SamlProviderPatchType) { + o.Type = &v +} + +// GetServiceProvider returns the ServiceProvider field value if set, zero value otherwise. +func (o *SamlProviderPatch) GetServiceProvider() SamlProviderPatchServiceProvider { + if o == nil || IsNil(o.ServiceProvider) { + var ret SamlProviderPatchServiceProvider + return ret + } + return *o.ServiceProvider +} + +// GetServiceProviderOk returns a tuple with the ServiceProvider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatch) GetServiceProviderOk() (*SamlProviderPatchServiceProvider, bool) { + if o == nil || IsNil(o.ServiceProvider) { + return nil, false + } + return o.ServiceProvider, true +} + +// HasServiceProvider returns a boolean if a field has been set. +func (o *SamlProviderPatch) HasServiceProvider() bool { + if o != nil && !IsNil(o.ServiceProvider) { + return true + } + + return false +} + +// SetServiceProvider gets a reference to the given SamlProviderPatchServiceProvider and assigns it to the ServiceProvider field. +func (o *SamlProviderPatch) SetServiceProvider(v SamlProviderPatchServiceProvider) { + o.ServiceProvider = &v +} + +// GetSaml returns the Saml field value if set, zero value otherwise. +func (o *SamlProviderPatch) GetSaml() SamlProviderPatchSaml { + if o == nil || IsNil(o.Saml) { + var ret SamlProviderPatchSaml + return ret + } + return *o.Saml +} + +// GetSamlOk returns a tuple with the Saml field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatch) GetSamlOk() (*SamlProviderPatchSaml, bool) { + if o == nil || IsNil(o.Saml) { + return nil, false + } + return o.Saml, true +} + +// HasSaml returns a boolean if a field has been set. +func (o *SamlProviderPatch) HasSaml() bool { + if o != nil && !IsNil(o.Saml) { + return true + } + + return false +} + +// SetSaml gets a reference to the given SamlProviderPatchSaml and assigns it to the Saml field. +func (o *SamlProviderPatch) SetSaml(v SamlProviderPatchSaml) { + o.Saml = &v +} + +// GetLoginDisabled returns the LoginDisabled field value if set, zero value otherwise. +func (o *SamlProviderPatch) GetLoginDisabled() bool { + if o == nil || IsNil(o.LoginDisabled) { + var ret bool + return ret + } + return *o.LoginDisabled +} + +// GetLoginDisabledOk returns a tuple with the LoginDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatch) GetLoginDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.LoginDisabled) { + return nil, false + } + return o.LoginDisabled, true +} + +// HasLoginDisabled returns a boolean if a field has been set. +func (o *SamlProviderPatch) HasLoginDisabled() bool { + if o != nil && !IsNil(o.LoginDisabled) { + return true + } + + return false +} + +// SetLoginDisabled gets a reference to the given bool and assigns it to the LoginDisabled field. +func (o *SamlProviderPatch) SetLoginDisabled(v bool) { + o.LoginDisabled = &v +} + +func (o SamlProviderPatch) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPatch) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.ServiceProvider) { + toSerialize["service_provider"] = o.ServiceProvider + } + if !IsNil(o.Saml) { + toSerialize["saml"] = o.Saml + } + if !IsNil(o.LoginDisabled) { + toSerialize["login_disabled"] = o.LoginDisabled + } + return toSerialize, nil +} + +type NullableSamlProviderPatch struct { + value *SamlProviderPatch + isSet bool +} + +func (v NullableSamlProviderPatch) Get() *SamlProviderPatch { + return v.value +} + +func (v *NullableSamlProviderPatch) Set(val *SamlProviderPatch) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPatch) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPatch) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPatch(val *SamlProviderPatch) *NullableSamlProviderPatch { + return &NullableSamlProviderPatch{value: val, isSet: true} +} + +func (v NullableSamlProviderPatch) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPatch) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_patch_saml.go b/idp/model_saml_provider_patch_saml.go new file mode 100644 index 0000000..fa85f3f --- /dev/null +++ b/idp/model_saml_provider_patch_saml.go @@ -0,0 +1,378 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPatchSaml type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPatchSaml{} + +// SamlProviderPatchSaml struct for SamlProviderPatchSaml +type SamlProviderPatchSaml struct { + Audience *string `json:"audience,omitempty"` + Issuer *string `json:"issuer,omitempty"` + PublicKey []string `json:"public_key,omitempty"` + ClaimsMapping *SamlProviderPostBodySamlClaimsMapping `json:"claims_mapping,omitempty"` + IdpInitiatedSsoEnabled *bool `json:"idp_initiated_sso_enabled,omitempty"` + SpInitiatedSsoEnabled *bool `json:"sp_initiated_sso_enabled,omitempty"` + UseComposerAcsUrl *bool `json:"use_composer_acs_url,omitempty"` + RequireEncryptedSamlAssertions *bool `json:"require_encrypted_saml_assertions,omitempty"` +} + +// NewSamlProviderPatchSaml instantiates a new SamlProviderPatchSaml object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPatchSaml() *SamlProviderPatchSaml { + this := SamlProviderPatchSaml{} + return &this +} + +// NewSamlProviderPatchSamlWithDefaults instantiates a new SamlProviderPatchSaml object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPatchSamlWithDefaults() *SamlProviderPatchSaml { + this := SamlProviderPatchSaml{} + return &this +} + +// GetAudience returns the Audience field value if set, zero value otherwise. +func (o *SamlProviderPatchSaml) GetAudience() string { + if o == nil || IsNil(o.Audience) { + var ret string + return ret + } + return *o.Audience +} + +// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchSaml) GetAudienceOk() (*string, bool) { + if o == nil || IsNil(o.Audience) { + return nil, false + } + return o.Audience, true +} + +// HasAudience returns a boolean if a field has been set. +func (o *SamlProviderPatchSaml) HasAudience() bool { + if o != nil && !IsNil(o.Audience) { + return true + } + + return false +} + +// SetAudience gets a reference to the given string and assigns it to the Audience field. +func (o *SamlProviderPatchSaml) SetAudience(v string) { + o.Audience = &v +} + +// GetIssuer returns the Issuer field value if set, zero value otherwise. +func (o *SamlProviderPatchSaml) GetIssuer() string { + if o == nil || IsNil(o.Issuer) { + var ret string + return ret + } + return *o.Issuer +} + +// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchSaml) GetIssuerOk() (*string, bool) { + if o == nil || IsNil(o.Issuer) { + return nil, false + } + return o.Issuer, true +} + +// HasIssuer returns a boolean if a field has been set. +func (o *SamlProviderPatchSaml) HasIssuer() bool { + if o != nil && !IsNil(o.Issuer) { + return true + } + + return false +} + +// SetIssuer gets a reference to the given string and assigns it to the Issuer field. +func (o *SamlProviderPatchSaml) SetIssuer(v string) { + o.Issuer = &v +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise. +func (o *SamlProviderPatchSaml) GetPublicKey() []string { + if o == nil || IsNil(o.PublicKey) { + var ret []string + return ret + } + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchSaml) GetPublicKeyOk() ([]string, bool) { + if o == nil || IsNil(o.PublicKey) { + return nil, false + } + return o.PublicKey, true +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *SamlProviderPatchSaml) HasPublicKey() bool { + if o != nil && !IsNil(o.PublicKey) { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given []string and assigns it to the PublicKey field. +func (o *SamlProviderPatchSaml) SetPublicKey(v []string) { + o.PublicKey = v +} + +// GetClaimsMapping returns the ClaimsMapping field value if set, zero value otherwise. +func (o *SamlProviderPatchSaml) GetClaimsMapping() SamlProviderPostBodySamlClaimsMapping { + if o == nil || IsNil(o.ClaimsMapping) { + var ret SamlProviderPostBodySamlClaimsMapping + return ret + } + return *o.ClaimsMapping +} + +// GetClaimsMappingOk returns a tuple with the ClaimsMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchSaml) GetClaimsMappingOk() (*SamlProviderPostBodySamlClaimsMapping, bool) { + if o == nil || IsNil(o.ClaimsMapping) { + return nil, false + } + return o.ClaimsMapping, true +} + +// HasClaimsMapping returns a boolean if a field has been set. +func (o *SamlProviderPatchSaml) HasClaimsMapping() bool { + if o != nil && !IsNil(o.ClaimsMapping) { + return true + } + + return false +} + +// SetClaimsMapping gets a reference to the given SamlProviderPostBodySamlClaimsMapping and assigns it to the ClaimsMapping field. +func (o *SamlProviderPatchSaml) SetClaimsMapping(v SamlProviderPostBodySamlClaimsMapping) { + o.ClaimsMapping = &v +} + +// GetIdpInitiatedSsoEnabled returns the IdpInitiatedSsoEnabled field value if set, zero value otherwise. +func (o *SamlProviderPatchSaml) GetIdpInitiatedSsoEnabled() bool { + if o == nil || IsNil(o.IdpInitiatedSsoEnabled) { + var ret bool + return ret + } + return *o.IdpInitiatedSsoEnabled +} + +// GetIdpInitiatedSsoEnabledOk returns a tuple with the IdpInitiatedSsoEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchSaml) GetIdpInitiatedSsoEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IdpInitiatedSsoEnabled) { + return nil, false + } + return o.IdpInitiatedSsoEnabled, true +} + +// HasIdpInitiatedSsoEnabled returns a boolean if a field has been set. +func (o *SamlProviderPatchSaml) HasIdpInitiatedSsoEnabled() bool { + if o != nil && !IsNil(o.IdpInitiatedSsoEnabled) { + return true + } + + return false +} + +// SetIdpInitiatedSsoEnabled gets a reference to the given bool and assigns it to the IdpInitiatedSsoEnabled field. +func (o *SamlProviderPatchSaml) SetIdpInitiatedSsoEnabled(v bool) { + o.IdpInitiatedSsoEnabled = &v +} + +// GetSpInitiatedSsoEnabled returns the SpInitiatedSsoEnabled field value if set, zero value otherwise. +func (o *SamlProviderPatchSaml) GetSpInitiatedSsoEnabled() bool { + if o == nil || IsNil(o.SpInitiatedSsoEnabled) { + var ret bool + return ret + } + return *o.SpInitiatedSsoEnabled +} + +// GetSpInitiatedSsoEnabledOk returns a tuple with the SpInitiatedSsoEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchSaml) GetSpInitiatedSsoEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.SpInitiatedSsoEnabled) { + return nil, false + } + return o.SpInitiatedSsoEnabled, true +} + +// HasSpInitiatedSsoEnabled returns a boolean if a field has been set. +func (o *SamlProviderPatchSaml) HasSpInitiatedSsoEnabled() bool { + if o != nil && !IsNil(o.SpInitiatedSsoEnabled) { + return true + } + + return false +} + +// SetSpInitiatedSsoEnabled gets a reference to the given bool and assigns it to the SpInitiatedSsoEnabled field. +func (o *SamlProviderPatchSaml) SetSpInitiatedSsoEnabled(v bool) { + o.SpInitiatedSsoEnabled = &v +} + +// GetUseComposerAcsUrl returns the UseComposerAcsUrl field value if set, zero value otherwise. +func (o *SamlProviderPatchSaml) GetUseComposerAcsUrl() bool { + if o == nil || IsNil(o.UseComposerAcsUrl) { + var ret bool + return ret + } + return *o.UseComposerAcsUrl +} + +// GetUseComposerAcsUrlOk returns a tuple with the UseComposerAcsUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchSaml) GetUseComposerAcsUrlOk() (*bool, bool) { + if o == nil || IsNil(o.UseComposerAcsUrl) { + return nil, false + } + return o.UseComposerAcsUrl, true +} + +// HasUseComposerAcsUrl returns a boolean if a field has been set. +func (o *SamlProviderPatchSaml) HasUseComposerAcsUrl() bool { + if o != nil && !IsNil(o.UseComposerAcsUrl) { + return true + } + + return false +} + +// SetUseComposerAcsUrl gets a reference to the given bool and assigns it to the UseComposerAcsUrl field. +func (o *SamlProviderPatchSaml) SetUseComposerAcsUrl(v bool) { + o.UseComposerAcsUrl = &v +} + +// GetRequireEncryptedSamlAssertions returns the RequireEncryptedSamlAssertions field value if set, zero value otherwise. +func (o *SamlProviderPatchSaml) GetRequireEncryptedSamlAssertions() bool { + if o == nil || IsNil(o.RequireEncryptedSamlAssertions) { + var ret bool + return ret + } + return *o.RequireEncryptedSamlAssertions +} + +// GetRequireEncryptedSamlAssertionsOk returns a tuple with the RequireEncryptedSamlAssertions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchSaml) GetRequireEncryptedSamlAssertionsOk() (*bool, bool) { + if o == nil || IsNil(o.RequireEncryptedSamlAssertions) { + return nil, false + } + return o.RequireEncryptedSamlAssertions, true +} + +// HasRequireEncryptedSamlAssertions returns a boolean if a field has been set. +func (o *SamlProviderPatchSaml) HasRequireEncryptedSamlAssertions() bool { + if o != nil && !IsNil(o.RequireEncryptedSamlAssertions) { + return true + } + + return false +} + +// SetRequireEncryptedSamlAssertions gets a reference to the given bool and assigns it to the RequireEncryptedSamlAssertions field. +func (o *SamlProviderPatchSaml) SetRequireEncryptedSamlAssertions(v bool) { + o.RequireEncryptedSamlAssertions = &v +} + +func (o SamlProviderPatchSaml) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPatchSaml) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Audience) { + toSerialize["audience"] = o.Audience + } + if !IsNil(o.Issuer) { + toSerialize["issuer"] = o.Issuer + } + if !IsNil(o.PublicKey) { + toSerialize["public_key"] = o.PublicKey + } + if !IsNil(o.ClaimsMapping) { + toSerialize["claims_mapping"] = o.ClaimsMapping + } + if !IsNil(o.IdpInitiatedSsoEnabled) { + toSerialize["idp_initiated_sso_enabled"] = o.IdpInitiatedSsoEnabled + } + if !IsNil(o.SpInitiatedSsoEnabled) { + toSerialize["sp_initiated_sso_enabled"] = o.SpInitiatedSsoEnabled + } + if !IsNil(o.UseComposerAcsUrl) { + toSerialize["use_composer_acs_url"] = o.UseComposerAcsUrl + } + if !IsNil(o.RequireEncryptedSamlAssertions) { + toSerialize["require_encrypted_saml_assertions"] = o.RequireEncryptedSamlAssertions + } + return toSerialize, nil +} + +type NullableSamlProviderPatchSaml struct { + value *SamlProviderPatchSaml + isSet bool +} + +func (v NullableSamlProviderPatchSaml) Get() *SamlProviderPatchSaml { + return v.value +} + +func (v *NullableSamlProviderPatchSaml) Set(val *SamlProviderPatchSaml) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPatchSaml) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPatchSaml) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPatchSaml(val *SamlProviderPatchSaml) *NullableSamlProviderPatchSaml { + return &NullableSamlProviderPatchSaml{value: val, isSet: true} +} + +func (v NullableSamlProviderPatchSaml) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPatchSaml) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_patch_service_provider.go b/idp/model_saml_provider_patch_service_provider.go new file mode 100644 index 0000000..08b9314 --- /dev/null +++ b/idp/model_saml_provider_patch_service_provider.go @@ -0,0 +1,126 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPatchServiceProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPatchServiceProvider{} + +// SamlProviderPatchServiceProvider struct for SamlProviderPatchServiceProvider +type SamlProviderPatchServiceProvider struct { + Urls *SamlProviderPatchServiceProviderUrls `json:"urls,omitempty"` +} + +// NewSamlProviderPatchServiceProvider instantiates a new SamlProviderPatchServiceProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPatchServiceProvider() *SamlProviderPatchServiceProvider { + this := SamlProviderPatchServiceProvider{} + return &this +} + +// NewSamlProviderPatchServiceProviderWithDefaults instantiates a new SamlProviderPatchServiceProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPatchServiceProviderWithDefaults() *SamlProviderPatchServiceProvider { + this := SamlProviderPatchServiceProvider{} + return &this +} + +// GetUrls returns the Urls field value if set, zero value otherwise. +func (o *SamlProviderPatchServiceProvider) GetUrls() SamlProviderPatchServiceProviderUrls { + if o == nil || IsNil(o.Urls) { + var ret SamlProviderPatchServiceProviderUrls + return ret + } + return *o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchServiceProvider) GetUrlsOk() (*SamlProviderPatchServiceProviderUrls, bool) { + if o == nil || IsNil(o.Urls) { + return nil, false + } + return o.Urls, true +} + +// HasUrls returns a boolean if a field has been set. +func (o *SamlProviderPatchServiceProvider) HasUrls() bool { + if o != nil && !IsNil(o.Urls) { + return true + } + + return false +} + +// SetUrls gets a reference to the given SamlProviderPatchServiceProviderUrls and assigns it to the Urls field. +func (o *SamlProviderPatchServiceProvider) SetUrls(v SamlProviderPatchServiceProviderUrls) { + o.Urls = &v +} + +func (o SamlProviderPatchServiceProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPatchServiceProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Urls) { + toSerialize["urls"] = o.Urls + } + return toSerialize, nil +} + +type NullableSamlProviderPatchServiceProvider struct { + value *SamlProviderPatchServiceProvider + isSet bool +} + +func (v NullableSamlProviderPatchServiceProvider) Get() *SamlProviderPatchServiceProvider { + return v.value +} + +func (v *NullableSamlProviderPatchServiceProvider) Set(val *SamlProviderPatchServiceProvider) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPatchServiceProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPatchServiceProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPatchServiceProvider(val *SamlProviderPatchServiceProvider) *NullableSamlProviderPatchServiceProvider { + return &NullableSamlProviderPatchServiceProvider{value: val, isSet: true} +} + +func (v NullableSamlProviderPatchServiceProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPatchServiceProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_patch_service_provider_urls.go b/idp/model_saml_provider_patch_service_provider_urls.go new file mode 100644 index 0000000..fc062e8 --- /dev/null +++ b/idp/model_saml_provider_patch_service_provider_urls.go @@ -0,0 +1,162 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPatchServiceProviderUrls type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPatchServiceProviderUrls{} + +// SamlProviderPatchServiceProviderUrls struct for SamlProviderPatchServiceProviderUrls +type SamlProviderPatchServiceProviderUrls struct { + SignOn *string `json:"sign_on,omitempty"` + SignOut *string `json:"sign_out,omitempty"` +} + +// NewSamlProviderPatchServiceProviderUrls instantiates a new SamlProviderPatchServiceProviderUrls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPatchServiceProviderUrls() *SamlProviderPatchServiceProviderUrls { + this := SamlProviderPatchServiceProviderUrls{} + return &this +} + +// NewSamlProviderPatchServiceProviderUrlsWithDefaults instantiates a new SamlProviderPatchServiceProviderUrls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPatchServiceProviderUrlsWithDefaults() *SamlProviderPatchServiceProviderUrls { + this := SamlProviderPatchServiceProviderUrls{} + return &this +} + +// GetSignOn returns the SignOn field value if set, zero value otherwise. +func (o *SamlProviderPatchServiceProviderUrls) GetSignOn() string { + if o == nil || IsNil(o.SignOn) { + var ret string + return ret + } + return *o.SignOn +} + +// GetSignOnOk returns a tuple with the SignOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchServiceProviderUrls) GetSignOnOk() (*string, bool) { + if o == nil || IsNil(o.SignOn) { + return nil, false + } + return o.SignOn, true +} + +// HasSignOn returns a boolean if a field has been set. +func (o *SamlProviderPatchServiceProviderUrls) HasSignOn() bool { + if o != nil && !IsNil(o.SignOn) { + return true + } + + return false +} + +// SetSignOn gets a reference to the given string and assigns it to the SignOn field. +func (o *SamlProviderPatchServiceProviderUrls) SetSignOn(v string) { + o.SignOn = &v +} + +// GetSignOut returns the SignOut field value if set, zero value otherwise. +func (o *SamlProviderPatchServiceProviderUrls) GetSignOut() string { + if o == nil || IsNil(o.SignOut) { + var ret string + return ret + } + return *o.SignOut +} + +// GetSignOutOk returns a tuple with the SignOut field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchServiceProviderUrls) GetSignOutOk() (*string, bool) { + if o == nil || IsNil(o.SignOut) { + return nil, false + } + return o.SignOut, true +} + +// HasSignOut returns a boolean if a field has been set. +func (o *SamlProviderPatchServiceProviderUrls) HasSignOut() bool { + if o != nil && !IsNil(o.SignOut) { + return true + } + + return false +} + +// SetSignOut gets a reference to the given string and assigns it to the SignOut field. +func (o *SamlProviderPatchServiceProviderUrls) SetSignOut(v string) { + o.SignOut = &v +} + +func (o SamlProviderPatchServiceProviderUrls) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPatchServiceProviderUrls) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SignOn) { + toSerialize["sign_on"] = o.SignOn + } + if !IsNil(o.SignOut) { + toSerialize["sign_out"] = o.SignOut + } + return toSerialize, nil +} + +type NullableSamlProviderPatchServiceProviderUrls struct { + value *SamlProviderPatchServiceProviderUrls + isSet bool +} + +func (v NullableSamlProviderPatchServiceProviderUrls) Get() *SamlProviderPatchServiceProviderUrls { + return v.value +} + +func (v *NullableSamlProviderPatchServiceProviderUrls) Set(val *SamlProviderPatchServiceProviderUrls) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPatchServiceProviderUrls) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPatchServiceProviderUrls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPatchServiceProviderUrls(val *SamlProviderPatchServiceProviderUrls) *NullableSamlProviderPatchServiceProviderUrls { + return &NullableSamlProviderPatchServiceProviderUrls{value: val, isSet: true} +} + +func (v NullableSamlProviderPatchServiceProviderUrls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPatchServiceProviderUrls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_patch_type.go b/idp/model_saml_provider_patch_type.go new file mode 100644 index 0000000..ea1387a --- /dev/null +++ b/idp/model_saml_provider_patch_type.go @@ -0,0 +1,126 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPatchType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPatchType{} + +// SamlProviderPatchType struct for SamlProviderPatchType +type SamlProviderPatchType struct { + Description *string `json:"description,omitempty"` +} + +// NewSamlProviderPatchType instantiates a new SamlProviderPatchType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPatchType() *SamlProviderPatchType { + this := SamlProviderPatchType{} + return &this +} + +// NewSamlProviderPatchTypeWithDefaults instantiates a new SamlProviderPatchType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPatchTypeWithDefaults() *SamlProviderPatchType { + this := SamlProviderPatchType{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SamlProviderPatchType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPatchType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SamlProviderPatchType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SamlProviderPatchType) SetDescription(v string) { + o.Description = &v +} + +func (o SamlProviderPatchType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPatchType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + return toSerialize, nil +} + +type NullableSamlProviderPatchType struct { + value *SamlProviderPatchType + isSet bool +} + +func (v NullableSamlProviderPatchType) Get() *SamlProviderPatchType { + return v.value +} + +func (v *NullableSamlProviderPatchType) Set(val *SamlProviderPatchType) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPatchType) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPatchType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPatchType(val *SamlProviderPatchType) *NullableSamlProviderPatchType { + return &NullableSamlProviderPatchType{value: val, isSet: true} +} + +func (v NullableSamlProviderPatchType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPatchType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_post_body.go b/idp/model_saml_provider_post_body.go new file mode 100644 index 0000000..4cf75fd --- /dev/null +++ b/idp/model_saml_provider_post_body.go @@ -0,0 +1,270 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPostBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPostBody{} + +// SamlProviderPostBody struct for SamlProviderPostBody +type SamlProviderPostBody struct { + ArcNamespace *string `json:"arc_namespace,omitempty"` + Name string `json:"name"` + Type SamlProviderPostBodyType `json:"type"` + ServiceProvider SamlProviderPostBodyServiceProvider `json:"service_provider"` + Saml SamlProviderPostBodySaml `json:"saml"` + LoginDisabled *bool `json:"login_disabled,omitempty"` +} + +// NewSamlProviderPostBody instantiates a new SamlProviderPostBody object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPostBody(name string, type_ SamlProviderPostBodyType, serviceProvider SamlProviderPostBodyServiceProvider, saml SamlProviderPostBodySaml) *SamlProviderPostBody { + this := SamlProviderPostBody{} + this.Name = name + this.Type = type_ + this.ServiceProvider = serviceProvider + this.Saml = saml + return &this +} + +// NewSamlProviderPostBodyWithDefaults instantiates a new SamlProviderPostBody object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPostBodyWithDefaults() *SamlProviderPostBody { + this := SamlProviderPostBody{} + return &this +} + +// GetArcNamespace returns the ArcNamespace field value if set, zero value otherwise. +func (o *SamlProviderPostBody) GetArcNamespace() string { + if o == nil || IsNil(o.ArcNamespace) { + var ret string + return ret + } + return *o.ArcNamespace +} + +// GetArcNamespaceOk returns a tuple with the ArcNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBody) GetArcNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.ArcNamespace) { + return nil, false + } + return o.ArcNamespace, true +} + +// HasArcNamespace returns a boolean if a field has been set. +func (o *SamlProviderPostBody) HasArcNamespace() bool { + if o != nil && !IsNil(o.ArcNamespace) { + return true + } + + return false +} + +// SetArcNamespace gets a reference to the given string and assigns it to the ArcNamespace field. +func (o *SamlProviderPostBody) SetArcNamespace(v string) { + o.ArcNamespace = &v +} + +// GetName returns the Name field value +func (o *SamlProviderPostBody) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBody) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SamlProviderPostBody) SetName(v string) { + o.Name = v +} + +// GetType returns the Type field value +func (o *SamlProviderPostBody) GetType() SamlProviderPostBodyType { + if o == nil { + var ret SamlProviderPostBodyType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBody) GetTypeOk() (*SamlProviderPostBodyType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *SamlProviderPostBody) SetType(v SamlProviderPostBodyType) { + o.Type = v +} + +// GetServiceProvider returns the ServiceProvider field value +func (o *SamlProviderPostBody) GetServiceProvider() SamlProviderPostBodyServiceProvider { + if o == nil { + var ret SamlProviderPostBodyServiceProvider + return ret + } + + return o.ServiceProvider +} + +// GetServiceProviderOk returns a tuple with the ServiceProvider field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBody) GetServiceProviderOk() (*SamlProviderPostBodyServiceProvider, bool) { + if o == nil { + return nil, false + } + return &o.ServiceProvider, true +} + +// SetServiceProvider sets field value +func (o *SamlProviderPostBody) SetServiceProvider(v SamlProviderPostBodyServiceProvider) { + o.ServiceProvider = v +} + +// GetSaml returns the Saml field value +func (o *SamlProviderPostBody) GetSaml() SamlProviderPostBodySaml { + if o == nil { + var ret SamlProviderPostBodySaml + return ret + } + + return o.Saml +} + +// GetSamlOk returns a tuple with the Saml field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBody) GetSamlOk() (*SamlProviderPostBodySaml, bool) { + if o == nil { + return nil, false + } + return &o.Saml, true +} + +// SetSaml sets field value +func (o *SamlProviderPostBody) SetSaml(v SamlProviderPostBodySaml) { + o.Saml = v +} + +// GetLoginDisabled returns the LoginDisabled field value if set, zero value otherwise. +func (o *SamlProviderPostBody) GetLoginDisabled() bool { + if o == nil || IsNil(o.LoginDisabled) { + var ret bool + return ret + } + return *o.LoginDisabled +} + +// GetLoginDisabledOk returns a tuple with the LoginDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBody) GetLoginDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.LoginDisabled) { + return nil, false + } + return o.LoginDisabled, true +} + +// HasLoginDisabled returns a boolean if a field has been set. +func (o *SamlProviderPostBody) HasLoginDisabled() bool { + if o != nil && !IsNil(o.LoginDisabled) { + return true + } + + return false +} + +// SetLoginDisabled gets a reference to the given bool and assigns it to the LoginDisabled field. +func (o *SamlProviderPostBody) SetLoginDisabled(v bool) { + o.LoginDisabled = &v +} + +func (o SamlProviderPostBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPostBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ArcNamespace) { + toSerialize["arc_namespace"] = o.ArcNamespace + } + toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + toSerialize["service_provider"] = o.ServiceProvider + toSerialize["saml"] = o.Saml + if !IsNil(o.LoginDisabled) { + toSerialize["login_disabled"] = o.LoginDisabled + } + return toSerialize, nil +} + +type NullableSamlProviderPostBody struct { + value *SamlProviderPostBody + isSet bool +} + +func (v NullableSamlProviderPostBody) Get() *SamlProviderPostBody { + return v.value +} + +func (v *NullableSamlProviderPostBody) Set(val *SamlProviderPostBody) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPostBody) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPostBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPostBody(val *SamlProviderPostBody) *NullableSamlProviderPostBody { + return &NullableSamlProviderPostBody{value: val, isSet: true} +} + +func (v NullableSamlProviderPostBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPostBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_post_body_saml.go b/idp/model_saml_provider_post_body_saml.go new file mode 100644 index 0000000..ac957cc --- /dev/null +++ b/idp/model_saml_provider_post_body_saml.go @@ -0,0 +1,351 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPostBodySaml type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPostBodySaml{} + +// SamlProviderPostBodySaml struct for SamlProviderPostBodySaml +type SamlProviderPostBodySaml struct { + Audience string `json:"audience"` + Issuer string `json:"issuer"` + PublicKey []string `json:"public_key"` + ClaimsMapping *SamlProviderPostBodySamlClaimsMapping `json:"claims_mapping,omitempty"` + IdpInitiatedSsoEnabled *bool `json:"idp_initiated_sso_enabled,omitempty"` + SpInitiatedSsoEnabled *bool `json:"sp_initiated_sso_enabled,omitempty"` + UseComposerAcsUrl *bool `json:"use_composer_acs_url,omitempty"` + RequireEncryptedSamlAssertions *bool `json:"require_encrypted_saml_assertions,omitempty"` +} + +// NewSamlProviderPostBodySaml instantiates a new SamlProviderPostBodySaml object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPostBodySaml(audience string, issuer string, publicKey []string) *SamlProviderPostBodySaml { + this := SamlProviderPostBodySaml{} + this.Audience = audience + this.Issuer = issuer + this.PublicKey = publicKey + return &this +} + +// NewSamlProviderPostBodySamlWithDefaults instantiates a new SamlProviderPostBodySaml object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPostBodySamlWithDefaults() *SamlProviderPostBodySaml { + this := SamlProviderPostBodySaml{} + return &this +} + +// GetAudience returns the Audience field value +func (o *SamlProviderPostBodySaml) GetAudience() string { + if o == nil { + var ret string + return ret + } + + return o.Audience +} + +// GetAudienceOk returns a tuple with the Audience field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySaml) GetAudienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Audience, true +} + +// SetAudience sets field value +func (o *SamlProviderPostBodySaml) SetAudience(v string) { + o.Audience = v +} + +// GetIssuer returns the Issuer field value +func (o *SamlProviderPostBodySaml) GetIssuer() string { + if o == nil { + var ret string + return ret + } + + return o.Issuer +} + +// GetIssuerOk returns a tuple with the Issuer field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySaml) GetIssuerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Issuer, true +} + +// SetIssuer sets field value +func (o *SamlProviderPostBodySaml) SetIssuer(v string) { + o.Issuer = v +} + +// GetPublicKey returns the PublicKey field value +func (o *SamlProviderPostBodySaml) GetPublicKey() []string { + if o == nil { + var ret []string + return ret + } + + return o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySaml) GetPublicKeyOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.PublicKey, true +} + +// SetPublicKey sets field value +func (o *SamlProviderPostBodySaml) SetPublicKey(v []string) { + o.PublicKey = v +} + +// GetClaimsMapping returns the ClaimsMapping field value if set, zero value otherwise. +func (o *SamlProviderPostBodySaml) GetClaimsMapping() SamlProviderPostBodySamlClaimsMapping { + if o == nil || IsNil(o.ClaimsMapping) { + var ret SamlProviderPostBodySamlClaimsMapping + return ret + } + return *o.ClaimsMapping +} + +// GetClaimsMappingOk returns a tuple with the ClaimsMapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySaml) GetClaimsMappingOk() (*SamlProviderPostBodySamlClaimsMapping, bool) { + if o == nil || IsNil(o.ClaimsMapping) { + return nil, false + } + return o.ClaimsMapping, true +} + +// HasClaimsMapping returns a boolean if a field has been set. +func (o *SamlProviderPostBodySaml) HasClaimsMapping() bool { + if o != nil && !IsNil(o.ClaimsMapping) { + return true + } + + return false +} + +// SetClaimsMapping gets a reference to the given SamlProviderPostBodySamlClaimsMapping and assigns it to the ClaimsMapping field. +func (o *SamlProviderPostBodySaml) SetClaimsMapping(v SamlProviderPostBodySamlClaimsMapping) { + o.ClaimsMapping = &v +} + +// GetIdpInitiatedSsoEnabled returns the IdpInitiatedSsoEnabled field value if set, zero value otherwise. +func (o *SamlProviderPostBodySaml) GetIdpInitiatedSsoEnabled() bool { + if o == nil || IsNil(o.IdpInitiatedSsoEnabled) { + var ret bool + return ret + } + return *o.IdpInitiatedSsoEnabled +} + +// GetIdpInitiatedSsoEnabledOk returns a tuple with the IdpInitiatedSsoEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySaml) GetIdpInitiatedSsoEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IdpInitiatedSsoEnabled) { + return nil, false + } + return o.IdpInitiatedSsoEnabled, true +} + +// HasIdpInitiatedSsoEnabled returns a boolean if a field has been set. +func (o *SamlProviderPostBodySaml) HasIdpInitiatedSsoEnabled() bool { + if o != nil && !IsNil(o.IdpInitiatedSsoEnabled) { + return true + } + + return false +} + +// SetIdpInitiatedSsoEnabled gets a reference to the given bool and assigns it to the IdpInitiatedSsoEnabled field. +func (o *SamlProviderPostBodySaml) SetIdpInitiatedSsoEnabled(v bool) { + o.IdpInitiatedSsoEnabled = &v +} + +// GetSpInitiatedSsoEnabled returns the SpInitiatedSsoEnabled field value if set, zero value otherwise. +func (o *SamlProviderPostBodySaml) GetSpInitiatedSsoEnabled() bool { + if o == nil || IsNil(o.SpInitiatedSsoEnabled) { + var ret bool + return ret + } + return *o.SpInitiatedSsoEnabled +} + +// GetSpInitiatedSsoEnabledOk returns a tuple with the SpInitiatedSsoEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySaml) GetSpInitiatedSsoEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.SpInitiatedSsoEnabled) { + return nil, false + } + return o.SpInitiatedSsoEnabled, true +} + +// HasSpInitiatedSsoEnabled returns a boolean if a field has been set. +func (o *SamlProviderPostBodySaml) HasSpInitiatedSsoEnabled() bool { + if o != nil && !IsNil(o.SpInitiatedSsoEnabled) { + return true + } + + return false +} + +// SetSpInitiatedSsoEnabled gets a reference to the given bool and assigns it to the SpInitiatedSsoEnabled field. +func (o *SamlProviderPostBodySaml) SetSpInitiatedSsoEnabled(v bool) { + o.SpInitiatedSsoEnabled = &v +} + +// GetUseComposerAcsUrl returns the UseComposerAcsUrl field value if set, zero value otherwise. +func (o *SamlProviderPostBodySaml) GetUseComposerAcsUrl() bool { + if o == nil || IsNil(o.UseComposerAcsUrl) { + var ret bool + return ret + } + return *o.UseComposerAcsUrl +} + +// GetUseComposerAcsUrlOk returns a tuple with the UseComposerAcsUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySaml) GetUseComposerAcsUrlOk() (*bool, bool) { + if o == nil || IsNil(o.UseComposerAcsUrl) { + return nil, false + } + return o.UseComposerAcsUrl, true +} + +// HasUseComposerAcsUrl returns a boolean if a field has been set. +func (o *SamlProviderPostBodySaml) HasUseComposerAcsUrl() bool { + if o != nil && !IsNil(o.UseComposerAcsUrl) { + return true + } + + return false +} + +// SetUseComposerAcsUrl gets a reference to the given bool and assigns it to the UseComposerAcsUrl field. +func (o *SamlProviderPostBodySaml) SetUseComposerAcsUrl(v bool) { + o.UseComposerAcsUrl = &v +} + +// GetRequireEncryptedSamlAssertions returns the RequireEncryptedSamlAssertions field value if set, zero value otherwise. +func (o *SamlProviderPostBodySaml) GetRequireEncryptedSamlAssertions() bool { + if o == nil || IsNil(o.RequireEncryptedSamlAssertions) { + var ret bool + return ret + } + return *o.RequireEncryptedSamlAssertions +} + +// GetRequireEncryptedSamlAssertionsOk returns a tuple with the RequireEncryptedSamlAssertions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySaml) GetRequireEncryptedSamlAssertionsOk() (*bool, bool) { + if o == nil || IsNil(o.RequireEncryptedSamlAssertions) { + return nil, false + } + return o.RequireEncryptedSamlAssertions, true +} + +// HasRequireEncryptedSamlAssertions returns a boolean if a field has been set. +func (o *SamlProviderPostBodySaml) HasRequireEncryptedSamlAssertions() bool { + if o != nil && !IsNil(o.RequireEncryptedSamlAssertions) { + return true + } + + return false +} + +// SetRequireEncryptedSamlAssertions gets a reference to the given bool and assigns it to the RequireEncryptedSamlAssertions field. +func (o *SamlProviderPostBodySaml) SetRequireEncryptedSamlAssertions(v bool) { + o.RequireEncryptedSamlAssertions = &v +} + +func (o SamlProviderPostBodySaml) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPostBodySaml) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["audience"] = o.Audience + toSerialize["issuer"] = o.Issuer + toSerialize["public_key"] = o.PublicKey + if !IsNil(o.ClaimsMapping) { + toSerialize["claims_mapping"] = o.ClaimsMapping + } + if !IsNil(o.IdpInitiatedSsoEnabled) { + toSerialize["idp_initiated_sso_enabled"] = o.IdpInitiatedSsoEnabled + } + if !IsNil(o.SpInitiatedSsoEnabled) { + toSerialize["sp_initiated_sso_enabled"] = o.SpInitiatedSsoEnabled + } + if !IsNil(o.UseComposerAcsUrl) { + toSerialize["use_composer_acs_url"] = o.UseComposerAcsUrl + } + if !IsNil(o.RequireEncryptedSamlAssertions) { + toSerialize["require_encrypted_saml_assertions"] = o.RequireEncryptedSamlAssertions + } + return toSerialize, nil +} + +type NullableSamlProviderPostBodySaml struct { + value *SamlProviderPostBodySaml + isSet bool +} + +func (v NullableSamlProviderPostBodySaml) Get() *SamlProviderPostBodySaml { + return v.value +} + +func (v *NullableSamlProviderPostBodySaml) Set(val *SamlProviderPostBodySaml) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPostBodySaml) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPostBodySaml) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPostBodySaml(val *SamlProviderPostBodySaml) *NullableSamlProviderPostBodySaml { + return &NullableSamlProviderPostBodySaml{value: val, isSet: true} +} + +func (v NullableSamlProviderPostBodySaml) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPostBodySaml) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_post_body_saml_claims_mapping.go b/idp/model_saml_provider_post_body_saml_claims_mapping.go new file mode 100644 index 0000000..b504f96 --- /dev/null +++ b/idp/model_saml_provider_post_body_saml_claims_mapping.go @@ -0,0 +1,270 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPostBodySamlClaimsMapping type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPostBodySamlClaimsMapping{} + +// SamlProviderPostBodySamlClaimsMapping struct for SamlProviderPostBodySamlClaimsMapping +type SamlProviderPostBodySamlClaimsMapping struct { + UsernameAttribute *string `json:"username_attribute,omitempty"` + FirstnameAttribute *string `json:"firstname_attribute,omitempty"` + LastnameAttribute *string `json:"lastname_attribute,omitempty"` + EmailAttribute *string `json:"email_attribute,omitempty"` + GroupAttribute *string `json:"group_attribute,omitempty"` +} + +// NewSamlProviderPostBodySamlClaimsMapping instantiates a new SamlProviderPostBodySamlClaimsMapping object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPostBodySamlClaimsMapping() *SamlProviderPostBodySamlClaimsMapping { + this := SamlProviderPostBodySamlClaimsMapping{} + return &this +} + +// NewSamlProviderPostBodySamlClaimsMappingWithDefaults instantiates a new SamlProviderPostBodySamlClaimsMapping object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPostBodySamlClaimsMappingWithDefaults() *SamlProviderPostBodySamlClaimsMapping { + this := SamlProviderPostBodySamlClaimsMapping{} + return &this +} + +// GetUsernameAttribute returns the UsernameAttribute field value if set, zero value otherwise. +func (o *SamlProviderPostBodySamlClaimsMapping) GetUsernameAttribute() string { + if o == nil || IsNil(o.UsernameAttribute) { + var ret string + return ret + } + return *o.UsernameAttribute +} + +// GetUsernameAttributeOk returns a tuple with the UsernameAttribute field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) GetUsernameAttributeOk() (*string, bool) { + if o == nil || IsNil(o.UsernameAttribute) { + return nil, false + } + return o.UsernameAttribute, true +} + +// HasUsernameAttribute returns a boolean if a field has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) HasUsernameAttribute() bool { + if o != nil && !IsNil(o.UsernameAttribute) { + return true + } + + return false +} + +// SetUsernameAttribute gets a reference to the given string and assigns it to the UsernameAttribute field. +func (o *SamlProviderPostBodySamlClaimsMapping) SetUsernameAttribute(v string) { + o.UsernameAttribute = &v +} + +// GetFirstnameAttribute returns the FirstnameAttribute field value if set, zero value otherwise. +func (o *SamlProviderPostBodySamlClaimsMapping) GetFirstnameAttribute() string { + if o == nil || IsNil(o.FirstnameAttribute) { + var ret string + return ret + } + return *o.FirstnameAttribute +} + +// GetFirstnameAttributeOk returns a tuple with the FirstnameAttribute field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) GetFirstnameAttributeOk() (*string, bool) { + if o == nil || IsNil(o.FirstnameAttribute) { + return nil, false + } + return o.FirstnameAttribute, true +} + +// HasFirstnameAttribute returns a boolean if a field has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) HasFirstnameAttribute() bool { + if o != nil && !IsNil(o.FirstnameAttribute) { + return true + } + + return false +} + +// SetFirstnameAttribute gets a reference to the given string and assigns it to the FirstnameAttribute field. +func (o *SamlProviderPostBodySamlClaimsMapping) SetFirstnameAttribute(v string) { + o.FirstnameAttribute = &v +} + +// GetLastnameAttribute returns the LastnameAttribute field value if set, zero value otherwise. +func (o *SamlProviderPostBodySamlClaimsMapping) GetLastnameAttribute() string { + if o == nil || IsNil(o.LastnameAttribute) { + var ret string + return ret + } + return *o.LastnameAttribute +} + +// GetLastnameAttributeOk returns a tuple with the LastnameAttribute field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) GetLastnameAttributeOk() (*string, bool) { + if o == nil || IsNil(o.LastnameAttribute) { + return nil, false + } + return o.LastnameAttribute, true +} + +// HasLastnameAttribute returns a boolean if a field has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) HasLastnameAttribute() bool { + if o != nil && !IsNil(o.LastnameAttribute) { + return true + } + + return false +} + +// SetLastnameAttribute gets a reference to the given string and assigns it to the LastnameAttribute field. +func (o *SamlProviderPostBodySamlClaimsMapping) SetLastnameAttribute(v string) { + o.LastnameAttribute = &v +} + +// GetEmailAttribute returns the EmailAttribute field value if set, zero value otherwise. +func (o *SamlProviderPostBodySamlClaimsMapping) GetEmailAttribute() string { + if o == nil || IsNil(o.EmailAttribute) { + var ret string + return ret + } + return *o.EmailAttribute +} + +// GetEmailAttributeOk returns a tuple with the EmailAttribute field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) GetEmailAttributeOk() (*string, bool) { + if o == nil || IsNil(o.EmailAttribute) { + return nil, false + } + return o.EmailAttribute, true +} + +// HasEmailAttribute returns a boolean if a field has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) HasEmailAttribute() bool { + if o != nil && !IsNil(o.EmailAttribute) { + return true + } + + return false +} + +// SetEmailAttribute gets a reference to the given string and assigns it to the EmailAttribute field. +func (o *SamlProviderPostBodySamlClaimsMapping) SetEmailAttribute(v string) { + o.EmailAttribute = &v +} + +// GetGroupAttribute returns the GroupAttribute field value if set, zero value otherwise. +func (o *SamlProviderPostBodySamlClaimsMapping) GetGroupAttribute() string { + if o == nil || IsNil(o.GroupAttribute) { + var ret string + return ret + } + return *o.GroupAttribute +} + +// GetGroupAttributeOk returns a tuple with the GroupAttribute field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) GetGroupAttributeOk() (*string, bool) { + if o == nil || IsNil(o.GroupAttribute) { + return nil, false + } + return o.GroupAttribute, true +} + +// HasGroupAttribute returns a boolean if a field has been set. +func (o *SamlProviderPostBodySamlClaimsMapping) HasGroupAttribute() bool { + if o != nil && !IsNil(o.GroupAttribute) { + return true + } + + return false +} + +// SetGroupAttribute gets a reference to the given string and assigns it to the GroupAttribute field. +func (o *SamlProviderPostBodySamlClaimsMapping) SetGroupAttribute(v string) { + o.GroupAttribute = &v +} + +func (o SamlProviderPostBodySamlClaimsMapping) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPostBodySamlClaimsMapping) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.UsernameAttribute) { + toSerialize["username_attribute"] = o.UsernameAttribute + } + if !IsNil(o.FirstnameAttribute) { + toSerialize["firstname_attribute"] = o.FirstnameAttribute + } + if !IsNil(o.LastnameAttribute) { + toSerialize["lastname_attribute"] = o.LastnameAttribute + } + if !IsNil(o.EmailAttribute) { + toSerialize["email_attribute"] = o.EmailAttribute + } + if !IsNil(o.GroupAttribute) { + toSerialize["group_attribute"] = o.GroupAttribute + } + return toSerialize, nil +} + +type NullableSamlProviderPostBodySamlClaimsMapping struct { + value *SamlProviderPostBodySamlClaimsMapping + isSet bool +} + +func (v NullableSamlProviderPostBodySamlClaimsMapping) Get() *SamlProviderPostBodySamlClaimsMapping { + return v.value +} + +func (v *NullableSamlProviderPostBodySamlClaimsMapping) Set(val *SamlProviderPostBodySamlClaimsMapping) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPostBodySamlClaimsMapping) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPostBodySamlClaimsMapping) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPostBodySamlClaimsMapping(val *SamlProviderPostBodySamlClaimsMapping) *NullableSamlProviderPostBodySamlClaimsMapping { + return &NullableSamlProviderPostBodySamlClaimsMapping{value: val, isSet: true} +} + +func (v NullableSamlProviderPostBodySamlClaimsMapping) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPostBodySamlClaimsMapping) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_post_body_service_provider.go b/idp/model_saml_provider_post_body_service_provider.go new file mode 100644 index 0000000..5fa905d --- /dev/null +++ b/idp/model_saml_provider_post_body_service_provider.go @@ -0,0 +1,117 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPostBodyServiceProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPostBodyServiceProvider{} + +// SamlProviderPostBodyServiceProvider struct for SamlProviderPostBodyServiceProvider +type SamlProviderPostBodyServiceProvider struct { + Urls SamlProviderPostBodyServiceProviderUrls `json:"urls"` +} + +// NewSamlProviderPostBodyServiceProvider instantiates a new SamlProviderPostBodyServiceProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPostBodyServiceProvider(urls SamlProviderPostBodyServiceProviderUrls) *SamlProviderPostBodyServiceProvider { + this := SamlProviderPostBodyServiceProvider{} + this.Urls = urls + return &this +} + +// NewSamlProviderPostBodyServiceProviderWithDefaults instantiates a new SamlProviderPostBodyServiceProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPostBodyServiceProviderWithDefaults() *SamlProviderPostBodyServiceProvider { + this := SamlProviderPostBodyServiceProvider{} + return &this +} + +// GetUrls returns the Urls field value +func (o *SamlProviderPostBodyServiceProvider) GetUrls() SamlProviderPostBodyServiceProviderUrls { + if o == nil { + var ret SamlProviderPostBodyServiceProviderUrls + return ret + } + + return o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodyServiceProvider) GetUrlsOk() (*SamlProviderPostBodyServiceProviderUrls, bool) { + if o == nil { + return nil, false + } + return &o.Urls, true +} + +// SetUrls sets field value +func (o *SamlProviderPostBodyServiceProvider) SetUrls(v SamlProviderPostBodyServiceProviderUrls) { + o.Urls = v +} + +func (o SamlProviderPostBodyServiceProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPostBodyServiceProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["urls"] = o.Urls + return toSerialize, nil +} + +type NullableSamlProviderPostBodyServiceProvider struct { + value *SamlProviderPostBodyServiceProvider + isSet bool +} + +func (v NullableSamlProviderPostBodyServiceProvider) Get() *SamlProviderPostBodyServiceProvider { + return v.value +} + +func (v *NullableSamlProviderPostBodyServiceProvider) Set(val *SamlProviderPostBodyServiceProvider) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPostBodyServiceProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPostBodyServiceProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPostBodyServiceProvider(val *SamlProviderPostBodyServiceProvider) *NullableSamlProviderPostBodyServiceProvider { + return &NullableSamlProviderPostBodyServiceProvider{value: val, isSet: true} +} + +func (v NullableSamlProviderPostBodyServiceProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPostBodyServiceProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_post_body_service_provider_urls.go b/idp/model_saml_provider_post_body_service_provider_urls.go new file mode 100644 index 0000000..cbcf6d0 --- /dev/null +++ b/idp/model_saml_provider_post_body_service_provider_urls.go @@ -0,0 +1,144 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPostBodyServiceProviderUrls type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPostBodyServiceProviderUrls{} + +// SamlProviderPostBodyServiceProviderUrls struct for SamlProviderPostBodyServiceProviderUrls +type SamlProviderPostBodyServiceProviderUrls struct { + SignOn string `json:"sign_on"` + SignOut string `json:"sign_out"` +} + +// NewSamlProviderPostBodyServiceProviderUrls instantiates a new SamlProviderPostBodyServiceProviderUrls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPostBodyServiceProviderUrls(signOn string, signOut string) *SamlProviderPostBodyServiceProviderUrls { + this := SamlProviderPostBodyServiceProviderUrls{} + this.SignOn = signOn + this.SignOut = signOut + return &this +} + +// NewSamlProviderPostBodyServiceProviderUrlsWithDefaults instantiates a new SamlProviderPostBodyServiceProviderUrls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPostBodyServiceProviderUrlsWithDefaults() *SamlProviderPostBodyServiceProviderUrls { + this := SamlProviderPostBodyServiceProviderUrls{} + return &this +} + +// GetSignOn returns the SignOn field value +func (o *SamlProviderPostBodyServiceProviderUrls) GetSignOn() string { + if o == nil { + var ret string + return ret + } + + return o.SignOn +} + +// GetSignOnOk returns a tuple with the SignOn field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodyServiceProviderUrls) GetSignOnOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SignOn, true +} + +// SetSignOn sets field value +func (o *SamlProviderPostBodyServiceProviderUrls) SetSignOn(v string) { + o.SignOn = v +} + +// GetSignOut returns the SignOut field value +func (o *SamlProviderPostBodyServiceProviderUrls) GetSignOut() string { + if o == nil { + var ret string + return ret + } + + return o.SignOut +} + +// GetSignOutOk returns a tuple with the SignOut field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodyServiceProviderUrls) GetSignOutOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SignOut, true +} + +// SetSignOut sets field value +func (o *SamlProviderPostBodyServiceProviderUrls) SetSignOut(v string) { + o.SignOut = v +} + +func (o SamlProviderPostBodyServiceProviderUrls) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPostBodyServiceProviderUrls) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sign_on"] = o.SignOn + toSerialize["sign_out"] = o.SignOut + return toSerialize, nil +} + +type NullableSamlProviderPostBodyServiceProviderUrls struct { + value *SamlProviderPostBodyServiceProviderUrls + isSet bool +} + +func (v NullableSamlProviderPostBodyServiceProviderUrls) Get() *SamlProviderPostBodyServiceProviderUrls { + return v.value +} + +func (v *NullableSamlProviderPostBodyServiceProviderUrls) Set(val *SamlProviderPostBodyServiceProviderUrls) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPostBodyServiceProviderUrls) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPostBodyServiceProviderUrls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPostBodyServiceProviderUrls(val *SamlProviderPostBodyServiceProviderUrls) *NullableSamlProviderPostBodyServiceProviderUrls { + return &NullableSamlProviderPostBodyServiceProviderUrls{value: val, isSet: true} +} + +func (v NullableSamlProviderPostBodyServiceProviderUrls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPostBodyServiceProviderUrls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/idp/model_saml_provider_post_body_type.go b/idp/model_saml_provider_post_body_type.go new file mode 100644 index 0000000..bd97c3a --- /dev/null +++ b/idp/model_saml_provider_post_body_type.go @@ -0,0 +1,153 @@ +/* +Identity Provider Management API + +Description of Identity Provider API + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package idp + +import ( + "encoding/json" +) + +// checks if the SamlProviderPostBodyType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SamlProviderPostBodyType{} + +// SamlProviderPostBodyType struct for SamlProviderPostBodyType +type SamlProviderPostBodyType struct { + Description *string `json:"description,omitempty"` + Name string `json:"name"` +} + +// NewSamlProviderPostBodyType instantiates a new SamlProviderPostBodyType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSamlProviderPostBodyType(name string) *SamlProviderPostBodyType { + this := SamlProviderPostBodyType{} + this.Name = name + return &this +} + +// NewSamlProviderPostBodyTypeWithDefaults instantiates a new SamlProviderPostBodyType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSamlProviderPostBodyTypeWithDefaults() *SamlProviderPostBodyType { + this := SamlProviderPostBodyType{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SamlProviderPostBodyType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodyType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SamlProviderPostBodyType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SamlProviderPostBodyType) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *SamlProviderPostBodyType) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SamlProviderPostBodyType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SamlProviderPostBodyType) SetName(v string) { + o.Name = v +} + +func (o SamlProviderPostBodyType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SamlProviderPostBodyType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + return toSerialize, nil +} + +type NullableSamlProviderPostBodyType struct { + value *SamlProviderPostBodyType + isSet bool +} + +func (v NullableSamlProviderPostBodyType) Get() *SamlProviderPostBodyType { + return v.value +} + +func (v *NullableSamlProviderPostBodyType) Set(val *SamlProviderPostBodyType) { + v.value = val + v.isSet = true +} + +func (v NullableSamlProviderPostBodyType) IsSet() bool { + return v.isSet +} + +func (v *NullableSamlProviderPostBodyType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSamlProviderPostBodyType(val *SamlProviderPostBodyType) *NullableSamlProviderPostBodyType { + return &NullableSamlProviderPostBodyType{value: val, isSet: true} +} + +func (v NullableSamlProviderPostBodyType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSamlProviderPostBodyType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +